summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2024-03-08 13:34:24 +0900
committerNguyễn Gia Phong <cnx@loang.net>2024-03-08 13:34:24 +0900
commite2c0c65b769a42ae102972a80361d942b08a0d29 (patch)
tree935fd8bc456619d2e4e5020bbf2a81d52e382444 /src
parent644b604af4b3535c1cc3208fada2a4909fca5a92 (diff)
downloadroux-e2c0c65b769a42ae102972a80361d942b08a0d29.tar.gz
Avoid building roux to test nonnative targets HEAD main
Diffstat (limited to 'src')
-rw-r--r--src/test.zig5
1 files changed, 1 insertions, 4 deletions
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);