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

@@ -180,7 +180,7 @@ const OpaqueB = opaque {};
test "opaque types" {
try expect(*OpaqueA != *OpaqueB);
if (!builtin.zig_is_stage2) {
if (builtin.zig_backend == .stage1) { // TODO make this pass for stage2
try expect(mem.eql(u8, @typeName(OpaqueA), "OpaqueA"));
try expect(mem.eql(u8, @typeName(OpaqueB), "OpaqueB"));
}