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