diff --git a/test/link/macho/empty/build.zig b/test/link/macho/empty/build.zig index 14a9af8040..c49f3b1219 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); + } }