From dcc125e1150b8503d97f6e4018bc4c05772d38bc Mon Sep 17 00:00:00 2001 From: Lee Cannon Date: Sun, 29 May 2022 18:19:30 +0100 Subject: [PATCH] use provided target for tests --- build.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.zig b/build.zig index 327e924..ccb0e6d 100644 --- a/build.zig +++ b/build.zig @@ -36,10 +36,12 @@ pub fn build(b: *std.build.Builder) !void { var unit_tests = b.addTest("src/unit_tests.zig"); unit_tests.setBuildMode(.Debug); + unit_tests.setTarget(target); test_step.dependOn(&unit_tests.step); var session_tests = b.addTest("tests/sessions.zig"); session_tests.addPackage(.{ .name = "header", .source = .{ .path = "src/header.zig" } }); session_tests.setBuildMode(.Debug); + session_tests.setTarget(target); test_step.dependOn(&session_tests.step); }