| ... | @@ -1,6 +1,5 @@ | ... | @@ -1,6 +1,5 @@ |
| 1 | const std = @import("std"); | 1 | const std = @import("std"); |
| 2 | const Builder = std.build.Builder; | 2 | const Builder = std.build.Builder; |
| 3 | const LibExeObjectStep = std.build.LibExeObjStep; | | |
| 4 | | 3 | |
| 5 | pub fn build(b: *Builder) void { | 4 | pub fn build(b: *Builder) void { |
| 6 | const mode = b.standardReleaseOptions(); | 5 | const mode = b.standardReleaseOptions(); |
| ... | @@ -16,9 +15,6 @@ pub fn build(b: *Builder) void { | ... | @@ -16,9 +15,6 @@ pub fn build(b: *Builder) void { |
| 16 | exe.setTarget(target); | 15 | exe.setTarget(target); |
| 17 | exe.linkLibC(); | 16 | exe.linkLibC(); |
| 18 | | 17 | |
| 19 | const run_cmd = exe.run(); | 18 | const run_cmd = std.build.EmulatableRunStep.create(b, "run", exe); |
| 20 | run_cmd.expectStdOutEqual("Hello!\n"); | 19 | test_step.dependOn(&run_cmd.step); |
| 21 | if (@import("builtin").os.tag == .macos) { | | |
| 22 | test_step.dependOn(&run_cmd.step); | | |
| 23 | } | | |
| 24 | } | 20 | } |