authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-04-23 22:24:13-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-04-23 22:24:13-07:00
logc75e11bf6aa67f2ca62b9b6677d134592777bfec
tree548b128e581359a504ad481ace385b83e226b379
parent5c70d7bc723a8e0e47018d3606285005c280ddb8

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 files changed, 1 insertions(+), 0 deletions(-)

test/tests.zig+1
...@@ -1017,6 +1017,7 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {...@@ -1017,6 +1017,7 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
1017 .name = qualified_name,1017 .name = qualified_name,
1018 .link_libc = test_target.link_libc,1018 .link_libc = test_target.link_libc,
1019 .target = altered_target,1019 .target = altered_target,
1020 .max_rss = if (mem.eql(u8, options.name, "std")) 9126805504 else 0,
1020 });1021 });
1021 compile_c.overrideZigLibDir("lib");1022 compile_c.overrideZigLibDir("lib");
1022 compile_c.addCSourceFileSource(.{1023 compile_c.addCSourceFileSource(.{