mirror of
https://github.com/ziglang/zig.git
synced 2026-02-20 00:08:56 +00:00
use EmulatableRunStep for newly added macho link test
Reverts 75e9a8c7fabb1f32753960b9114dcee875256351
This commit is contained in:
parent
75e9a8c7fa
commit
0030e72d53
@ -1,6 +1,5 @@
|
||||
const std = @import("std");
|
||||
const Builder = std.build.Builder;
|
||||
const LibExeObjectStep = std.build.LibExeObjStep;
|
||||
|
||||
pub fn build(b: *Builder) void {
|
||||
const mode = b.standardReleaseOptions();
|
||||
@ -16,9 +15,6 @@ pub fn build(b: *Builder) void {
|
||||
exe.setTarget(target);
|
||||
exe.linkLibC();
|
||||
|
||||
const run_cmd = exe.run();
|
||||
run_cmd.expectStdOutEqual("Hello!\n");
|
||||
if (@import("builtin").os.tag == .macos) {
|
||||
test_step.dependOn(&run_cmd.step);
|
||||
}
|
||||
const run_cmd = std.build.EmulatableRunStep.create(b, "run", exe);
|
||||
test_step.dependOn(&run_cmd.step);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user