mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
CI: use -j1 like a coward
Zig's build script has several race conditions preventing proper concurrent builds from working. By using -j1 for now, finishing this branch (concurrent zig builds) is untangled from the separate problem of correcting concurrency issues with zig's own build script. In other words, let's solve one problem at a time.
This commit is contained in:
parent
cb09470063
commit
c641af3cba
@ -60,6 +60,7 @@ stage3-debug/bin/zig build -Dtarget=arm-linux-musleabihf
|
||||
# TODO: add -fqemu back to this line
|
||||
|
||||
stage3-debug/bin/zig build test docs \
|
||||
-j1 \
|
||||
-fwasmtime \
|
||||
-Dstatic-llvm \
|
||||
-Dtarget=native-native-musl \
|
||||
|
||||
@ -60,6 +60,7 @@ stage3-release/bin/zig build -Dtarget=arm-linux-musleabihf
|
||||
# TODO: add -fqemu back to this line
|
||||
|
||||
stage3-release/bin/zig build test docs \
|
||||
-j1 \
|
||||
-fwasmtime \
|
||||
-Dstatic-llvm \
|
||||
-Dtarget=native-native-musl \
|
||||
|
||||
@ -44,6 +44,7 @@ PATH="$HOME/local/bin:$PATH" cmake .. \
|
||||
$HOME/local/bin/ninja install
|
||||
|
||||
stage3-release/bin/zig build test docs \
|
||||
-j1 \
|
||||
--zig-lib-dir "$(pwd)/../lib" \
|
||||
-Denable-macos-sdk \
|
||||
-Dstatic-llvm \
|
||||
|
||||
@ -58,6 +58,7 @@ stage3-debug/bin/zig fmt --check .. \
|
||||
stage3-debug/bin/zig build -Dtarget=arm-linux-musleabihf
|
||||
|
||||
stage3-debug/bin/zig build test docs \
|
||||
-j1 \
|
||||
-fqemu \
|
||||
-fwasmtime \
|
||||
-Dstatic-llvm \
|
||||
|
||||
@ -59,6 +59,7 @@ stage3-release/bin/zig fmt --check .. \
|
||||
stage3-release/bin/zig build -Dtarget=arm-linux-musleabihf
|
||||
|
||||
stage3-release/bin/zig build test docs \
|
||||
-j1 \
|
||||
-fqemu \
|
||||
-fwasmtime \
|
||||
-Dstatic-llvm \
|
||||
|
||||
@ -48,6 +48,7 @@ cmake .. \
|
||||
make $JOBS install
|
||||
|
||||
stage3/bin/zig build test docs \
|
||||
-j1 \
|
||||
--zig-lib-dir "$(pwd)/../lib" \
|
||||
-Denable-macos-sdk \
|
||||
-Dstatic-llvm \
|
||||
|
||||
@ -48,6 +48,7 @@ cmake .. \
|
||||
make $JOBS install
|
||||
|
||||
stage3/bin/zig build test docs \
|
||||
-j1 \
|
||||
--zig-lib-dir "$(pwd)/../lib" \
|
||||
-Denable-macos-sdk \
|
||||
-Dstatic-llvm \
|
||||
|
||||
@ -1067,6 +1067,10 @@ pub const StandaloneContext = struct {
|
||||
zig_args.append(rel_zig_exe) catch unreachable;
|
||||
zig_args.append("build") catch unreachable;
|
||||
|
||||
// TODO: fix the various non-concurrency-safe issues in zig's standalone tests,
|
||||
// and then remove this!
|
||||
zig_args.append("-j1") catch @panic("OOM");
|
||||
|
||||
zig_args.append("--build-file") catch unreachable;
|
||||
zig_args.append(b.pathFromRoot(build_file)) catch unreachable;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user