mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
stage2: skip recursion test on some hosts
In order for this test to pass, the host linking/start code needs to support explicitly setting the stack size. Zig defaults to 16 MiB stack size, which is enough to pass the test in Debug builds, however, most operating systems do not honor the stack size we request for and give a smaller amount. Eventually the goal is to pass this test on all hosts.
This commit is contained in:
parent
1d808d0dd2
commit
1d3f76bbda
@ -233,7 +233,11 @@ pub fn addCases(ctx: *TestContext) !void {
|
||||
\\}
|
||||
, "");
|
||||
}
|
||||
{
|
||||
// This will make a pretty deep call stack, so this test can only be enabled
|
||||
// on hosts where Zig's linking strategy can honor the 16 MiB (default) we
|
||||
// link the self-hosted compiler with.
|
||||
const host_supports_custom_stack_size = @import("builtin").target.os.tag == .linux;
|
||||
if (host_supports_custom_stack_size) {
|
||||
var case = ctx.exeFromCompiledC("@setEvalBranchQuota", .{});
|
||||
|
||||
case.addCompareOutput(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user