| ... | @@ -1034,6 +1034,11 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step { | ... | @@ -1034,6 +1034,11 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step { |
| 1034 | | 1034 | |
| 1035 | these_tests.addIncludePath(.{ .path = "test" }); | 1035 | these_tests.addIncludePath(.{ .path = "test" }); |
| 1036 | | 1036 | |
| | 1037 | if (test_target.target.getOs().tag == .wasi) { |
| | 1038 | // WASI's default stack size can be too small for some big tests. |
| | 1039 | these_tests.stack_size = 2 * 1024 * 1024; |
| | 1040 | } |
| | 1041 | |
| 1037 | const qualified_name = b.fmt("{s}-{s}-{s}{s}{s}{s}", .{ | 1042 | const qualified_name = b.fmt("{s}-{s}-{s}{s}{s}{s}", .{ |
| 1038 | options.name, | 1043 | options.name, |
| 1039 | triple_txt, | 1044 | triple_txt, |