mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-26 13:01:34 +03:00
bootstrap.c: work around the gcc sra miscomp using preprocessor checks rather than CLI arg (#31589)
Closes #31577 I've also extended the "good" ranges to fit versions >14.3 and >13.4, since both of these branches have the fix merged so if they ever make a dot release it should be good. Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31589 Reviewed-by: Andrew Kelley <andrew@ziglang.org> Co-authored-by: fardragon <michaldrozd@protonmail.ch> Co-committed-by: fardragon <michaldrozd@protonmail.ch>
This commit is contained in:
@@ -21,8 +21,7 @@ export ZIG_LOCAL_CACHE_DIR="$PWD/zig-local-cache"
|
||||
|
||||
# Test building from source without LLVM.
|
||||
cc -o bootstrap bootstrap.c
|
||||
# See comments in bootstrap.c for an explanation of the flag given here.
|
||||
./bootstrap --workaround-gcc-sra-miscomp
|
||||
./bootstrap
|
||||
./zig2 build -Dno-lib
|
||||
./zig-out/bin/zig test test/behavior.zig
|
||||
|
||||
|
||||
Reference in New Issue
Block a user