diff --git a/test/link/macho/empty/build.zig b/test/link/macho/empty/build.zig index 14a9af804077261a134d7a12035f39e2fbdaf559..c49f3b1219821646b2fb3f754efb75a4d1e3402d 100644 --- a/test/link/macho/empty/build.zig +++ b/test/link/macho/empty/build.zig @@ -18,5 +18,7 @@ pub fn build(b: *Builder) void { const run_cmd = exe.run(); run_cmd.expectStdOutEqual("Hello!\n"); - test_step.dependOn(&run_cmd.step); + if (@import("builtin").os.tag == .macos) { + test_step.dependOn(&run_cmd.step); + } }