zig reduce: fix compilation (#31930)

fixes #31926

Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31930
Reviewed-by: Andrew Kelley <andrew@ziglang.org>
This commit is contained in:
glowsquid
2026-04-22 02:00:41 +02:00
committed by Andrew Kelley
parent 3ea77badf9
commit 0b768cd9dd
4 changed files with 17 additions and 7 deletions
+3
View File
@@ -55,6 +55,9 @@ stage3-release/bin/zig build test docs \
stage3-release/bin/zig build test-std --fuzz=1K -Dno-lib -Dfuzz-only -Doptimize=ReleaseSafe
stage3-release/bin/zig build test-std --fuzz=1K -Dno-lib -Dfuzz-only -Doptimize=Debug
# Ensure that reduce compiles
stage3-release/bin/zig reduce -h
# Ensure that stage3 and stage4 are byte-for-byte identical.
stage3-release/bin/zig build \
--maxrss ${ZSF_MAX_RSS:-0} \
+3
View File
@@ -77,6 +77,9 @@ stage3-release/bin/zig build test docs \
stage3-release/bin/zig build test-std --fuzz=1K -Dno-lib -Dfuzz-only -Doptimize=ReleaseSafe
stage3-release/bin/zig build test-std --fuzz=1K -Dno-lib -Dfuzz-only -Doptimize=Debug
# Ensure that reduce compiles
stage3-release/bin/zig reduce -h
# Ensure that stage3 and stage4 are byte-for-byte identical.
stage3-release/bin/zig build \
--prefix stage4-release \
+4
View File
@@ -61,6 +61,10 @@ CheckLastExitCode
# stage3-release\bin\zig.exe build test-std --fuzz=1K -Dno-lib -Dfuzz-only -Doptimize=Debug
# CheckLastExitCode
# Ensure that reduce compiles
stage3-release\bin\zig.exe build reduce -h
CheckLastExitCode
# Ensure that stage3 and stage4 are byte-for-byte identical.
Write-Output "Build and compare stage4..."
stage3-release\bin\zig.exe build `