stage2: support being built in ReleaseSafe mode
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user