Commit 6adecdc58a

Andrew Kelley <andrew@ziglang.org>
2021-12-19 01:29:46
init-exe template: build.zig: setTarget on the tests
1 parent 88ea2cb
Changed files (1)
lib
std
special
init-exe
lib/std/special/init-exe/build.zig
@@ -26,6 +26,7 @@ pub fn build(b: *std.build.Builder) void {
     run_step.dependOn(&run_cmd.step);
 
     const exe_tests = b.addTest("src/main.zig");
+    exe_tests.setTarget(target);
     exe_tests.setBuildMode(mode);
 
     const test_step = b.step("test", "Run unit tests");