diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2023-03-05 12:39:32 +0000 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-04-12 12:06:19 -0400 |
| commit | ccf670c2b04ebeb9db43eb9f5c47c6cf03e4b1d0 (patch) | |
| tree | 3f7899bf6231500782af185ffe701ee66793e226 /test/src/Cases.zig | |
| parent | 602029bb2fb78048e46136784e717b57b8de8f2c (diff) | |
| download | zig-ccf670c2b04ebeb9db43eb9f5c47c6cf03e4b1d0.tar.gz zig-ccf670c2b04ebeb9db43eb9f5c47c6cf03e4b1d0.zip | |
Zir: implement explicit block_comptime instruction
Resolves: #7056
Diffstat (limited to 'test/src/Cases.zig')
| -rw-r--r-- | test/src/Cases.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/src/Cases.zig b/test/src/Cases.zig index 890f4f6f89..b2c8ff555e 100644 --- a/test/src/Cases.zig +++ b/test/src/Cases.zig @@ -718,7 +718,7 @@ const TestManifestConfigDefaults = struct { if (@"type" == .@"error") { return "native"; } - comptime { + return comptime blk: { var defaults: []const u8 = ""; // TODO should we only return "mainstream" targets by default here? // TODO we should also specify ABIs explicitly as the backends are @@ -735,8 +735,8 @@ const TestManifestConfigDefaults = struct { defaults = defaults ++ "x86_64-windows" ++ ","; // Wasm defaults = defaults ++ "wasm32-wasi"; - return defaults; - } + break :blk defaults; + }; } else if (std.mem.eql(u8, key, "output_mode")) { return switch (@"type") { .@"error" => "Obj", |
