mirror of
https://github.com/ziglang/zig.git
synced 2026-02-20 00:08:56 +00:00
tests: give explicit stack size to module tests on WASI
I have observed the standard library tests overflowing the default WASI stack as of the previous commit. As best as I can tell, this isn't directly our fault: LLVM is just emitting less efficient code in debug builds with the new codegen patterns.
This commit is contained in:
parent
09a57583a4
commit
62d077cfa1
@ -1034,6 +1034,11 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
|
||||
|
||||
these_tests.addIncludePath(.{ .path = "test" });
|
||||
|
||||
if (test_target.target.getOs().tag == .wasi) {
|
||||
// WASI's default stack size can be too small for some big tests.
|
||||
these_tests.stack_size = 2 * 1024 * 1024;
|
||||
}
|
||||
|
||||
const qualified_name = b.fmt("{s}-{s}-{s}{s}{s}{s}", .{
|
||||
options.name,
|
||||
triple_txt,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user