From e2c0c65b769a42ae102972a80361d942b08a0d29 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Fri, 8 Mar 2024 13:34:24 +0900 Subject: Avoid building roux to test nonnative targets --- src/test.zig | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/test.zig b/src/test.zig index 04d7f00..cdd9805 100644 --- a/src/test.zig +++ b/src/test.zig @@ -232,10 +232,7 @@ fn check(ssa: []const u8) anyerror!void { const s = try joinPath(allocator, &.{ dir, "a.s" }); defer allocator.free(s); const ir_loc = b: { - const ir = try collectOutput(if (emulator) |executor| - &.{ executor, bin, ssa } - else - &.{ bin, ssa }); + const ir = try collectOutput(&.{ bin, "-t", qbe_target, ssa }); errdefer allocator.free(ir); try tmp.parent_dir.writeFile(s, ir); break :b loc(ir); -- cgit 1.4.1