authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-09-13 18:08:59-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-09-13 18:08:59-07:00
log0a89624d599cfcb884946dfb938945f399df085a
tree09d167fa3516b89e84c06cca9c787eb838b14c98
parent349d78a443c8a844c5050cd3122b539f8c95598b

stage2: support being built in ReleaseSafe mode


6 files changed, 6 insertions(+), 6 deletions(-)

src/Air.zig+1-1
......@@ -811,7 +811,7 @@ pub const Inst = struct {
811811 // bigger than expected. Note that in Debug builds, Zig is allowed
812812 // to insert a secret field for safety checks.
813813 comptime {
814 if (builtin.mode != .Debug) {
814 if (builtin.mode != .Debug and builtin.mode != .ReleaseSafe) {
815815 assert(@sizeOf(Data) == 8);
816816 }
817817 }
src/Zir.zig+1-1
......@@ -2602,7 +2602,7 @@ pub const Inst = struct {
26022602 // bigger than expected. Note that in Debug builds, Zig is allowed
26032603 // to insert a secret field for safety checks.
26042604 comptime {
2605 if (builtin.mode != .Debug) {
2605 if (builtin.mode != .Debug and builtin.mode != .ReleaseSafe) {
26062606 assert(@sizeOf(Data) == 8);
26072607 }
26082608 }
src/arch/aarch64/Mir.zig+1-1
......@@ -473,7 +473,7 @@ pub const Inst = struct {
473473 // Make sure we don't accidentally make instructions bigger than expected.
474474 // Note that in Debug builds, Zig is allowed to insert a secret field for safety checks.
475475 comptime {
476 if (builtin.mode != .Debug) {
476 if (builtin.mode != .Debug and builtin.mode != .ReleaseSafe) {
477477 assert(@sizeOf(Data) == 8);
478478 }
479479 }
src/arch/arm/Mir.zig+1-1
......@@ -264,7 +264,7 @@ pub const Inst = struct {
264264 // Make sure we don't accidentally make instructions bigger than expected.
265265 // Note that in Debug builds, Zig is allowed to insert a secret field for safety checks.
266266 comptime {
267 if (builtin.mode != .Debug) {
267 if (builtin.mode != .Debug and builtin.mode != .ReleaseSafe) {
268268 assert(@sizeOf(Data) == 8);
269269 }
270270 }
src/arch/sparc64/Mir.zig+1-1
......@@ -328,7 +328,7 @@ pub const Inst = struct {
328328 // Make sure we don't accidentally make instructions bigger than expected.
329329 // Note that in Debug builds, Zig is allowed to insert a secret field for safety checks.
330330 comptime {
331 if (builtin.mode != .Debug) {
331 if (builtin.mode != .Debug and builtin.mode != .ReleaseSafe) {
332332 assert(@sizeOf(Data) == 8);
333333 }
334334 }
src/arch/x86_64/Mir.zig+1-1
......@@ -462,7 +462,7 @@ pub const Inst = struct {
462462 // Make sure we don't accidentally make instructions bigger than expected.
463463 // Note that in Debug builds, Zig is allowed to insert a secret field for safety checks.
464464 comptime {
465 if (builtin.mode != .Debug) {
465 if (builtin.mode != .Debug and builtin.mode != .ReleaseSafe) {
466466 assert(@sizeOf(Data) == 8);
467467 }
468468 }