mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
stage2: support being built in ReleaseSafe mode
This commit is contained in:
parent
349d78a443
commit
0a89624d59
@ -811,7 +811,7 @@ pub const Inst = struct {
|
||||
// bigger than expected. Note that in Debug builds, Zig is allowed
|
||||
// to insert a secret field for safety checks.
|
||||
comptime {
|
||||
if (builtin.mode != .Debug) {
|
||||
if (builtin.mode != .Debug and builtin.mode != .ReleaseSafe) {
|
||||
assert(@sizeOf(Data) == 8);
|
||||
}
|
||||
}
|
||||
|
||||
@ -2602,7 +2602,7 @@ pub const Inst = struct {
|
||||
// bigger than expected. Note that in Debug builds, Zig is allowed
|
||||
// to insert a secret field for safety checks.
|
||||
comptime {
|
||||
if (builtin.mode != .Debug) {
|
||||
if (builtin.mode != .Debug and builtin.mode != .ReleaseSafe) {
|
||||
assert(@sizeOf(Data) == 8);
|
||||
}
|
||||
}
|
||||
|
||||
@ -473,7 +473,7 @@ pub const Inst = struct {
|
||||
// Make sure we don't accidentally make instructions bigger than expected.
|
||||
// Note that in Debug builds, Zig is allowed to insert a secret field for safety checks.
|
||||
comptime {
|
||||
if (builtin.mode != .Debug) {
|
||||
if (builtin.mode != .Debug and builtin.mode != .ReleaseSafe) {
|
||||
assert(@sizeOf(Data) == 8);
|
||||
}
|
||||
}
|
||||
|
||||
@ -264,7 +264,7 @@ pub const Inst = struct {
|
||||
// Make sure we don't accidentally make instructions bigger than expected.
|
||||
// Note that in Debug builds, Zig is allowed to insert a secret field for safety checks.
|
||||
comptime {
|
||||
if (builtin.mode != .Debug) {
|
||||
if (builtin.mode != .Debug and builtin.mode != .ReleaseSafe) {
|
||||
assert(@sizeOf(Data) == 8);
|
||||
}
|
||||
}
|
||||
|
||||
@ -328,7 +328,7 @@ pub const Inst = struct {
|
||||
// Make sure we don't accidentally make instructions bigger than expected.
|
||||
// Note that in Debug builds, Zig is allowed to insert a secret field for safety checks.
|
||||
comptime {
|
||||
if (builtin.mode != .Debug) {
|
||||
if (builtin.mode != .Debug and builtin.mode != .ReleaseSafe) {
|
||||
assert(@sizeOf(Data) == 8);
|
||||
}
|
||||
}
|
||||
|
||||
@ -462,7 +462,7 @@ pub const Inst = struct {
|
||||
// Make sure we don't accidentally make instructions bigger than expected.
|
||||
// Note that in Debug builds, Zig is allowed to insert a secret field for safety checks.
|
||||
comptime {
|
||||
if (builtin.mode != .Debug) {
|
||||
if (builtin.mode != .Debug and builtin.mode != .ReleaseSafe) {
|
||||
assert(@sizeOf(Data) == 8);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user