mirror of
https://github.com/ziglang/zig.git
synced 2026-02-04 05:33:39 +00:00
init-exe template: build.zig: setTarget on the tests
This commit is contained in:
parent
88ea2cb757
commit
6adecdc58a
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user