| ... | @@ -2898,15 +2898,6 @@ fn addOneModuleTest( | ... | @@ -2898,15 +2898,6 @@ fn addOneModuleTest( |
| 2898 | const libc_suffix = if (test_target.link_libc == true) "-libc" else ""; | 2898 | const libc_suffix = if (test_target.link_libc == true) "-libc" else ""; |
| 2899 | const model_txt = target.cpu.model.name; | 2899 | const model_txt = target.cpu.model.name; |
| 2900 | | 2900 | |
| 2901 | // These emulated targets need a lot more RAM for unknown reasons. | | |
| 2902 | const max_rss = if (mem.eql(u8, options.name, "std") and | | |
| 2903 | (target.cpu.arch == .hexagon or | | |
| 2904 | (target.cpu.arch.isRISCV() and !resolved_target.query.isNative()) or | | |
| 2905 | target.cpu.arch.isWasm())) | | |
| 2906 | options.max_rss * 2 | | |
| 2907 | else | | |
| 2908 | options.max_rss; | | |
| 2909 | | | |
| 2910 | const these_tests = b.addTest(.{ | 2901 | const these_tests = b.addTest(.{ |
| 2911 | .root_module = b.createModule(.{ | 2902 | .root_module = b.createModule(.{ |
| 2912 | .root_source_file = b.path(options.root_src), | 2903 | .root_source_file = b.path(options.root_src), |
| ... | @@ -2918,7 +2909,7 @@ fn addOneModuleTest( | ... | @@ -2918,7 +2909,7 @@ fn addOneModuleTest( |
| 2918 | .sanitize_thread = options.sanitize_thread, | 2909 | .sanitize_thread = options.sanitize_thread, |
| 2919 | .single_threaded = test_target.single_threaded, | 2910 | .single_threaded = test_target.single_threaded, |
| 2920 | }), | 2911 | }), |
| 2921 | .max_rss = max_rss, | 2912 | .max_rss = options.max_rss, |
| 2922 | .filters = options.test_filters, | 2913 | .filters = options.test_filters, |
| 2923 | .use_llvm = test_target.use_llvm, | 2914 | .use_llvm = test_target.use_llvm, |
| 2924 | .use_lld = test_target.use_lld, | 2915 | .use_lld = test_target.use_lld, |