aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/llvm/increase-stack-size-unconditional.patch
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-21 17:51:23 +0900
committerOphestra <cat@gensokyo.uk>2026-05-21 17:51:23 +0900
commit54aae9d72a12ae8af93ba35d00a3817e3105dcce (patch)
treefcd8a264d970c0060c9ee5070e845fe446b6fce2 /internal/rosa/package/llvm/increase-stack-size-unconditional.patch
parent58646f8ea56d2b2093891e5265225e0c100104f6 (diff)
internal/rosa/package: migrate llvm patches
LLVM itself is unlikely to ever be migrated due to complexity of the bootstrap, so migrate patches instead. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/package/llvm/increase-stack-size-unconditional.patch')
-rw-r--r--internal/rosa/package/llvm/increase-stack-size-unconditional.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/internal/rosa/package/llvm/increase-stack-size-unconditional.patch b/internal/rosa/package/llvm/increase-stack-size-unconditional.patch
new file mode 100644
index 00000000..20ffe579
--- /dev/null
+++ b/internal/rosa/package/llvm/increase-stack-size-unconditional.patch
@@ -0,0 +1,13 @@
+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