mirror of
https://github.com/ziglang/zig.git
synced 2025-12-30 18:13:19 +00:00
CI: isolate zig-cache for parallel debug/release builds
This commit is contained in:
parent
09ec9b0315
commit
e3ccea70dd
@ -12,6 +12,12 @@ git config core.abbrev 9
|
||||
|
||||
echo "building stage3-debug with zig version $($OLD_ZIG version)"
|
||||
|
||||
# Override the cache directories so that we don't clobber with the release
|
||||
# testing script which is running concurrently and in the same directory.
|
||||
# Normally we want processes to cooperate, but in this case we want them isolated.
|
||||
export ZIG_LOCAL_CACHE_DIR="$(pwd)/zig-cache-local-debug"
|
||||
export ZIG_GLOBAL_CACHE_DIR="$(pwd)/zig-cache-global-debug"
|
||||
|
||||
export CC="$OLD_ZIG cc -target $TARGET -mcpu=$MCPU"
|
||||
export CXX="$OLD_ZIG c++ -target $TARGET -mcpu=$MCPU"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user