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:
Andrew Kelley
2022-01-17 21:55:49 -07:00
parent 84c2c47fae
commit 4d05f2ae5f
17 changed files with 20 additions and 23 deletions

View File

@@ -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