diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-01-17 21:55:49 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-01-17 21:55:49 -0700 |
| commit | 4d05f2ae5f7b79f8abb4aa07d846a46470ffdb1a (patch) | |
| tree | 930c4dc2aa77d420fd66917136cb1c0e2514f2e6 /test/behavior/basic.zig | |
| parent | 84c2c47fae82e913286a2306d8947252ae3a42f7 (diff) | |
| download | zig-4d05f2ae5f7b79f8abb4aa07d846a46470ffdb1a.tar.gz zig-4d05f2ae5f7b79f8abb4aa07d846a46470ffdb1a.zip | |
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 1c24ef0d0b09a12a1fe98056f2fc04de78a82df3.
Diffstat (limited to 'test/behavior/basic.zig')
| -rw-r--r-- | test/behavior/basic.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/behavior/basic.zig b/test/behavior/basic.zig index cca2d63cd7..9064339877 100644 --- a/test/behavior/basic.zig +++ b/test/behavior/basic.zig @@ -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")); } |
