@@ -152,7 +152,7 @@ pub fn addPkgTests(b: &build.Builder, test_filter: ?[]const u8, root_src: []cons
152152 const step = b .step (b .fmt ("test-{}" , name ), desc );
153153 for (test_targets ) | test_target | {
154154 const is_native = (test_target .os == builtin .os and test_target .arch == builtin .arch );
155- for ([]Mode {Mode .Debug , Mode .ReleaseSafe , Mode .ReleaseFast }) | mode | {
155+ for ([]Mode {Mode .Debug , Mode .ReleaseSafe , Mode .ReleaseFast , Mode . ReleaseSmall }) | mode | {
156156 for ([]bool {false , true }) | link_libc | {
157157 if (link_libc and ! is_native ) {
158158 // don't assume we have a cross-compiling libc set up
@@ -451,7 +451,7 @@ pub const CompareOutputContext = struct {
451451 self .step .dependOn (& run_and_cmp_output .step );
452452 },
453453 Special .None = > {
454- for ([]Mode {Mode .Debug , Mode .ReleaseSafe , Mode .ReleaseFast }) | mode | {
454+ for ([]Mode {Mode .Debug , Mode .ReleaseSafe , Mode .ReleaseFast , Mode . ReleaseSmall }) | mode | {
455455 const annotated_case_name = fmt .allocPrint (self .b .allocator , "{} {} ({})" ,
456456 "compare-output" , case .name , @tagName (mode )) catch unreachable ;
457457 if (self .test_filter ) | filter | {
@@ -705,7 +705,7 @@ pub const CompileErrorContext = struct {
705705 pub fn addCase (self : & CompileErrorContext , case : & const TestCase ) void {
706706 const b = self .b ;
707707
708- for ([]Mode {Mode .Debug , Mode .ReleaseSafe , Mode . ReleaseFast }) | mode | {
708+ for ([]Mode {Mode .Debug , Mode .ReleaseFast }) | mode | {
709709 const annotated_case_name = fmt .allocPrint (self .b .allocator , "compile-error {} ({})" ,
710710 case .name , @tagName (mode )) catch unreachable ;
711711 if (self .test_filter ) | filter | {
@@ -773,7 +773,7 @@ pub const BuildExamplesContext = struct {
773773 pub fn addAllArgs (self : & BuildExamplesContext , root_src : []const u8 , link_libc : bool ) void {
774774 const b = self .b ;
775775
776- for ([]Mode {Mode .Debug , Mode .ReleaseSafe , Mode .ReleaseFast }) | mode | {
776+ for ([]Mode {Mode .Debug , Mode .ReleaseSafe , Mode .ReleaseFast , Mode . ReleaseSmall }) | mode | {
777777 const annotated_case_name = fmt .allocPrint (self .b .allocator , "build {} ({})" ,
778778 root_src , @tagName (mode )) catch unreachable ;
779779 if (self .test_filter ) | filter | {
0 commit comments