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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user