aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-04-10 00:56:51 +0900
committerOphestra <cat@gensokyo.uk>2026-04-10 00:56:51 +0900
commit6f924336fc280966249e05785fa9aac106ff562e (patch)
treee6dcbf647b8bf906eb7dd212e7a93383e4541f7f /internal
parentbd88f10524e5b0280273c235a93e18629a8126ed (diff)
internal/rosa/llvm: increase stack size
Some aarch64 regression tests fail intermittently on the default size. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
-rw-r--r--internal/rosa/llvm.go17
1 files changed, 16 insertions, 1 deletions
diff --git a/internal/rosa/llvm.go b/internal/rosa/llvm.go
index 5305884b..e68ab6aa 100644
--- a/internal/rosa/llvm.go
+++ b/internal/rosa/llvm.go
@@ -170,7 +170,22 @@ ln -s ld.lld /work/system/bin/ld
mustDecode(llvmChecksum),
pkg.TarGzip,
), &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,
Env: slices.Concat([]string{