aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-03-17 20:06:40 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-03-17 20:10:00 -0700
commit69d78bdae4a5d0ec5877add5936ae8e9daf09140 (patch)
tree8742f0c946570f9e031e14b9388509cc5eb69f57 /src
parent1d1364c3cd296d628501bce131513ce18d2055a3 (diff)
downloadzig-69d78bdae4a5d0ec5877add5936ae8e9daf09140.tar.gz
zig-69d78bdae4a5d0ec5877add5936ae8e9daf09140.zip
stage2 test harness: ask for the backend explicitly
Follow-up to 35d6ee08c468642969b594b711dd6448bbaefa89
Diffstat (limited to 'src')
-rw-r--r--src/test.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test.zig b/src/test.zig
index 972bd7bcbd..e2be5e2172 100644
--- a/src/test.zig
+++ b/src/test.zig
@@ -886,9 +886,9 @@ pub const TestContext = struct {
.directory = emit_directory,
.basename = "test_case.h",
} else null;
- const use_llvm: ?bool = switch (case.backend) {
+ const use_llvm: bool = switch (case.backend) {
.llvm => true,
- else => null,
+ else => false,
};
const comp = try Compilation.create(allocator, .{
.local_cache_directory = zig_cache_directory,