| ... | @@ -233,7 +233,11 @@ pub fn addCases(ctx: *TestContext) !void { | ... | @@ -233,7 +233,11 @@ pub fn addCases(ctx: *TestContext) !void { |
| 233 | \\} | 233 | \\} |
| 234 | , ""); | 234 | , ""); |
| 235 | } | 235 | } |
| 236 | { | 236 | // This will make a pretty deep call stack, so this test can only be enabled |
| | 237 | // on hosts where Zig's linking strategy can honor the 16 MiB (default) we |
| | 238 | // link the self-hosted compiler with. |
| | 239 | const host_supports_custom_stack_size = @import("builtin").target.os.tag == .linux; |
| | 240 | if (host_supports_custom_stack_size) { |
| 237 | var case = ctx.exeFromCompiledC("@setEvalBranchQuota", .{}); | 241 | var case = ctx.exeFromCompiledC("@setEvalBranchQuota", .{}); |
| 238 | | 242 | |
| 239 | case.addCompareOutput( | 243 | case.addCompareOutput( |