authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-05-01 00:53:56+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-05-01 00:53:56+02:00
logf7a607ef68c96cb6c5b68cbf762e621aaed95caf
tree589db3584c8a04493b35e9bccf3c4b88eaa3be03
parent5d55999d20c4d856ad9e0bd35a939e4aa3be3d0d
parent8eafca4c9bbe38dc194b0cf02db96afcb7dd0494
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

Merge branch 'ci-jit-cmd'


5 files changed, 19 insertions(+), 11 deletions(-)

ci/aarch64-macos-release.sh-3
......@@ -55,9 +55,6 @@ stage3-release/bin/zig build test docs \
5555stage3-release/bin/zig build test-std --fuzz=1K -Dno-lib -Dfuzz-only -Doptimize=ReleaseSafe
5656stage3-release/bin/zig build test-std --fuzz=1K -Dno-lib -Dfuzz-only -Doptimize=Debug
5757
58# Ensure that reduce compiles
59stage3-release/bin/zig reduce -h
60
6158# Ensure that stage3 and stage4 are byte-for-byte identical.
6259stage3-release/bin/zig build \
6360 --maxrss ${ZSF_MAX_RSS:-0} \
ci/x86_64-linux-release.sh-3
......@@ -77,9 +77,6 @@ stage3-release/bin/zig build test docs \
7777stage3-release/bin/zig build test-std --fuzz=1K -Dno-lib -Dfuzz-only -Doptimize=ReleaseSafe
7878stage3-release/bin/zig build test-std --fuzz=1K -Dno-lib -Dfuzz-only -Doptimize=Debug
7979
80# Ensure that reduce compiles
81stage3-release/bin/zig reduce -h
82
8380# Ensure that stage3 and stage4 are byte-for-byte identical.
8481stage3-release/bin/zig build \
8582 --prefix stage4-release \
ci/x86_64-windows-release.ps1-4
......@@ -61,10 +61,6 @@ CheckLastExitCode
6161# stage3-release\bin\zig.exe build test-std --fuzz=1K -Dno-lib -Dfuzz-only -Doptimize=Debug
6262# CheckLastExitCode
6363
64# Ensure that reduce compiles
65stage3-release\bin\zig.exe build reduce -h
66CheckLastExitCode
67
6864# Ensure that stage3 and stage4 are byte-for-byte identical.
6965Write-Output "Build and compare stage4..."
7066stage3-release\bin\zig.exe build `
lib/compiler/std-docs.zig+1-1
......@@ -18,7 +18,7 @@ fn usage(io: Io) noreturn {
1818 \\ By default, enabled unless a port is specified.
1919 \\
2020 ) catch {};
21 std.process.exit(1);
21 std.process.exit(0);
2222}
2323
2424pub fn main(init: std.process.Init) !void {
test/tests.zig+18
......@@ -2237,6 +2237,24 @@ pub fn addCliTests(b: *std.Build) *Step {
22372237 const step = b.step("test-cli", "Test the command line interface");
22382238 const s = std.fs.path.sep_str;
22392239
2240 {
2241 // Test that all JIT'd commands compile.
2242 for (&[_][]const u8{
2243 "libc",
2244 "objcopy",
2245 "objdump",
2246 "rc",
2247 "reduce",
2248 "std",
2249 }) |cmd| {
2250 const run_help = b.addSystemCommand(&.{ b.graph.zig_exe, cmd, "--help" });
2251 run_help.setName(b.fmt("zig {s} --help", .{cmd}));
2252 run_help.expectStdErrEqual("");
2253 run_help.expectExitCode(0);
2254 step.dependOn(&run_help.step);
2255 }
2256 }
2257
22402258 {
22412259 // Test `zig init`.
22422260 const tmp_path = b.tmpPath();