remove zig_is_stage2 from @import("builtin")
Instead use the standarized option for communicating the
zig compiler backend at comptime, which is `zig_backend`. This was
introduced in commit 1c24ef0d0b.
This commit is contained in:
@@ -111,7 +111,7 @@ test "array with sentinels" {
|
||||
|
||||
const S = struct {
|
||||
fn doTheTest(is_ct: bool) !void {
|
||||
if (is_ct or builtin.zig_is_stage2) {
|
||||
if (is_ct or builtin.zig_backend != .stage1) {
|
||||
var zero_sized: [0:0xde]u8 = [_:0xde]u8{};
|
||||
// Stage1 test coverage disabled at runtime because of
|
||||
// https://github.com/ziglang/zig/issues/4372
|
||||
|
||||
Reference in New Issue
Block a user