diff options
author | Nguyễn Gia Phong <cnx@loang.net> | 2024-03-08 13:34:24 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <cnx@loang.net> | 2024-03-08 13:34:24 +0900 |
commit | e2c0c65b769a42ae102972a80361d942b08a0d29 (patch) | |
tree | 935fd8bc456619d2e4e5020bbf2a81d52e382444 /src | |
parent | 644b604af4b3535c1cc3208fada2a4909fca5a92 (diff) | |
download | roux-e2c0c65b769a42ae102972a80361d942b08a0d29.tar.gz |
Diffstat (limited to 'src')
-rw-r--r-- | src/test.zig | 5 |
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); |