Ziggit

How do I run a systemCommand in a temp directory while caching the results? (opens in new tab)

I currently am building GMP statically for my project using the provided configure script with addSystemCommand (technically with a bash script to move the header and artifact into addOutputFileArg and addOutputDirectoryArg respectively). This leaves behind a host of .o files and other stuff, and currently I am using setCwd to build in a subdirectory of the GMP zig-pkg path. It seems more idiomatic to me to get a temp path with tmpPath, but when I do so this step no longer caches and re-runs ...

Read the original article
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help