From 9915396ffab1bd12c1b1b2b4e99eaccd0ece1c3e Mon Sep 17 00:00:00 2001 From: Luke Boswell Date: Tue, 5 Aug 2025 17:41:36 +1000 Subject: [PATCH] support echo test on Windows --- build.zig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build.zig b/build.zig index 1fba261e31..da2cd91372 100644 --- a/build.zig +++ b/build.zig @@ -168,8 +168,11 @@ pub fn build(b: *std.Build) void { const run_tests = b.addRunArtifact(all_tests); test_step.dependOn(&run_tests.step); - // Add success message after all tests complete - const tests_passed_step = b.addSystemCommand(&.{ "echo", "All tests passed!" }); + // Add success message after all tests complete (cross-platform) + const tests_passed_step = if (builtin.target.os.tag == .windows) + b.addSystemCommand(&.{ "cmd.exe", "/c", "echo", "All tests passed!" }) + else + b.addSystemCommand(&.{ "echo", "All tests passed!" }); tests_passed_step.step.dependOn(&run_tests.step); test_step.dependOn(&tests_passed_step.step); }