From 4d05f2ae5f7b79f8abb4aa07d846a46470ffdb1a Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 17 Jan 2022 21:55:49 -0700 Subject: 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. --- test/behavior/struct.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/behavior/struct.zig') diff --git a/test/behavior/struct.zig b/test/behavior/struct.zig index b5841c58fb..40310f8add 100644 --- a/test/behavior/struct.zig +++ b/test/behavior/struct.zig @@ -213,7 +213,7 @@ test "packed struct field alignment" { b: u32 align(1), } = undefined; }; - const S = if (builtin.zig_is_stage2) Stage2 else Stage1; + const S = if (builtin.zig_backend != .stage1) Stage2 else Stage1; try expect(@TypeOf(&S.baz.b) == *align(1) u32); } -- cgit v1.2.3