internal/rosa/llvm: increase stack size
All checks were successful
Test / Create distribution (push) Successful in 1m56s
Test / Sandbox (push) Successful in 9m57s
Test / Sandbox (race detector) (push) Successful in 12m34s
Test / ShareFS (push) Successful in 2m0s
Test / Hakurei (race detector) (push) Successful in 11m33s
Test / Hakurei (push) Successful in 6m3s
Test / Flake checks (push) Successful in 1m40s

Some aarch64 regression tests fail intermittently on the default size.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-04-10 00:56:51 +09:00
parent bd88f10524
commit 6f924336fc

View File

@@ -170,7 +170,22 @@ ln -s ld.lld /work/system/bin/ld
mustDecode(llvmChecksum), mustDecode(llvmChecksum),
pkg.TarGzip, pkg.TarGzip,
), &PackageAttr{ ), &PackageAttr{
Patches: attr.patches, Patches: slices.Concat(attr.patches, []KV{
{"increase-stack-size-unconditional", `diff --git a/llvm/lib/Support/Threading.cpp b/llvm/lib/Support/Threading.cpp
index 9da357a7ebb9..b2931510c1ae 100644
--- a/llvm/lib/Support/Threading.cpp
+++ b/llvm/lib/Support/Threading.cpp
@@ -80,7 +80,7 @@ unsigned llvm::ThreadPoolStrategy::compute_thread_count() const {
// keyword.
#include "llvm/Support/thread.h"
-#if defined(__APPLE__)
+#if defined(__APPLE__) || 1
// Darwin's default stack size for threads except the main one is only 512KB,
// which is not enough for some/many normal LLVM compilations. This implements
// the same interface as std::thread but requests the same stack size as the
`},
}),
NonStage0: attr.nonStage0, NonStage0: attr.nonStage0,
Env: slices.Concat([]string{ Env: slices.Concat([]string{