Skip to content

Commit c75e11b

Browse files
committed
tests: add a maxrss for compiling std lib C backend .c file
I observed clang taking 8G to compile the output from the std lib tests using the C backend. This commit should make the Windows CI stop failing due to OOM.
1 parent 5c70d7b commit c75e11b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/tests.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,7 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
10171017
.name = qualified_name,
10181018
.link_libc = test_target.link_libc,
10191019
.target = altered_target,
1020+
.max_rss = if (mem.eql(u8, options.name, "std")) 9126805504 else 0,
10201021
});
10211022
compile_c.overrideZigLibDir("lib");
10221023
compile_c.addCSourceFileSource(.{

0 commit comments

Comments
 (0)