sysjs: pass target to testStep

This commit is contained in:
Ali Chraghi 2022-07-28 12:58:18 +04:30 committed by Stephen Gutekanst
parent eecbad403c
commit 25b6288efe

View file

@ -2,8 +2,9 @@ const std = @import("std");
pub fn build(b: *std.build.Builder) void { pub fn build(b: *std.build.Builder) void {
const mode = b.standardReleaseOptions(); const mode = b.standardReleaseOptions();
const target = b.standardTargetOptions(.{});
const test_step = b.step("test", "Run library tests"); const test_step = b.step("test", "Run library tests");
test_step.dependOn(&testStep(b, mode).step); test_step.dependOn(&testStep(b, mode, target).step);
} }
pub fn testStep(b: *std.build.Builder, mode: std.builtin.Mode, target: std.zig.CrossTarget) *std.build.RunStep { pub fn testStep(b: *std.build.Builder, mode: std.builtin.Mode, target: std.zig.CrossTarget) *std.build.RunStep {