authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-12-18 17:29:46-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-12-18 17:29:46-07:00
log6adecdc58ab34656aee2c6bcf7928507c0ed265f
treecd83b6b04fc6f0c94b77f4ee6bb763fe02f3c04b
parent88ea2cb757e1bd1dcade39053feed49bb66e18bd

init-exe template: build.zig: setTarget on the tests


1 files changed, 1 insertions(+), 0 deletions(-)

lib/std/special/init-exe/build.zig+1
...@@ -26,6 +26,7 @@ pub fn build(b: *std.build.Builder) void {...@@ -26,6 +26,7 @@ pub fn build(b: *std.build.Builder) void {
26 run_step.dependOn(&run_cmd.step);26 run_step.dependOn(&run_cmd.step);
2727
28 const exe_tests = b.addTest("src/main.zig");28 const exe_tests = b.addTest("src/main.zig");
29 exe_tests.setTarget(target);
29 exe_tests.setBuildMode(mode);30 exe_tests.setBuildMode(mode);
3031
31 const test_step = b.step("test", "Run unit tests");32 const test_step = b.step("test", "Run unit tests");