| ... | @@ -148,7 +148,7 @@ pub fn addPkgTestsRaw(b: &build.Builder, test_filter: ?[]const u8, root_src: []c | ... | @@ -148,7 +148,7 @@ pub fn addPkgTestsRaw(b: &build.Builder, test_filter: ?[]const u8, root_src: []c |
| 148 | const step = b.step(b.fmt("test-{}", name), desc); | 148 | const step = b.step(b.fmt("test-{}", name), desc); |
| 149 | for (test_targets) |test_target| { | 149 | for (test_targets) |test_target| { |
| 150 | const is_native = (test_target.os == builtin.os and test_target.arch == builtin.arch); | 150 | const is_native = (test_target.os == builtin.os and test_target.arch == builtin.arch); |
| 151 | for ([]Mode{Mode.Debug, Mode.ReleaseFast}) |mode| { | 151 | for ([]Mode{Mode.Debug, Mode.ReleaseSafe, Mode.ReleaseFast}) |mode| { |
| 152 | for (libc_bools) |link_libc| { | 152 | for (libc_bools) |link_libc| { |
| 153 | if (link_libc and !is_native) { | 153 | if (link_libc and !is_native) { |
| 154 | // don't assume we have a cross-compiling libc set up | 154 | // don't assume we have a cross-compiling libc set up |
| ... | @@ -418,7 +418,7 @@ pub const CompareOutputContext = struct { | ... | @@ -418,7 +418,7 @@ pub const CompareOutputContext = struct { |
| 418 | self.step.dependOn(&run_and_cmp_output.step); | 418 | self.step.dependOn(&run_and_cmp_output.step); |
| 419 | }, | 419 | }, |
| 420 | Special.None => { | 420 | Special.None => { |
| 421 | for ([]Mode{Mode.Debug, Mode.ReleaseFast}) |mode| { | 421 | for ([]Mode{Mode.Debug, Mode.ReleaseSafe, Mode.ReleaseFast}) |mode| { |
| 422 | const annotated_case_name = %%fmt.allocPrint(self.b.allocator, "{} {} ({})", | 422 | const annotated_case_name = %%fmt.allocPrint(self.b.allocator, "{} {} ({})", |
| 423 | "compare-output", case.name, @enumTagName(mode)); | 423 | "compare-output", case.name, @enumTagName(mode)); |
| 424 | if (self.test_filter) |filter| { | 424 | if (self.test_filter) |filter| { |
| ... | @@ -664,7 +664,7 @@ pub const CompileErrorContext = struct { | ... | @@ -664,7 +664,7 @@ pub const CompileErrorContext = struct { |
| 664 | pub fn addCase(self: &CompileErrorContext, case: &const TestCase) { | 664 | pub fn addCase(self: &CompileErrorContext, case: &const TestCase) { |
| 665 | const b = self.b; | 665 | const b = self.b; |
| 666 | | 666 | |
| 667 | for ([]Mode{Mode.Debug, Mode.ReleaseFast}) |mode| { | 667 | for ([]Mode{Mode.Debug, Mode.ReleaseSafe, Mode.ReleaseFast}) |mode| { |
| 668 | const annotated_case_name = %%fmt.allocPrint(self.b.allocator, "compile-error {} ({})", | 668 | const annotated_case_name = %%fmt.allocPrint(self.b.allocator, "compile-error {} ({})", |
| 669 | case.name, @enumTagName(mode)); | 669 | case.name, @enumTagName(mode)); |
| 670 | if (self.test_filter) |filter| { | 670 | if (self.test_filter) |filter| { |
| ... | @@ -730,7 +730,7 @@ pub const BuildExamplesContext = struct { | ... | @@ -730,7 +730,7 @@ pub const BuildExamplesContext = struct { |
| 730 | pub fn addAllArgs(self: &BuildExamplesContext, root_src: []const u8, link_libc: bool) { | 730 | pub fn addAllArgs(self: &BuildExamplesContext, root_src: []const u8, link_libc: bool) { |
| 731 | const b = self.b; | 731 | const b = self.b; |
| 732 | | 732 | |
| 733 | for ([]Mode{Mode.Debug, Mode.ReleaseFast}) |mode| { | 733 | for ([]Mode{Mode.Debug, Mode.ReleaseSafe, Mode.ReleaseFast}) |mode| { |
| 734 | const annotated_case_name = %%fmt.allocPrint(self.b.allocator, "build {} ({})", | 734 | const annotated_case_name = %%fmt.allocPrint(self.b.allocator, "build {} ({})", |
| 735 | root_src, @enumTagName(mode)); | 735 | root_src, @enumTagName(mode)); |
| 736 | if (self.test_filter) |filter| { | 736 | if (self.test_filter) |filter| { |