2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-21 14:50:07 -07:00

llvm: increase stack size on musl

This commit is contained in:
git-bruh 2024-03-23 16:05:51 +05:30
parent 09ad265b60
commit 3f60a7b1b0
No known key found for this signature in database
4 changed files with 18 additions and 0 deletions

View File

@ -2,6 +2,8 @@
export DESTDIR="$1"
patch -p1 < musl-stack-size.patch
cd llvm
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \

View File

@ -1,2 +1,3 @@
b3f2a3fc4d2f77ef717f920ec5bd224a196e67c024ecf0b1080e38f8b95ba297ed
78c57fd0ae1cf67b61210b2d6be58aa51372161e8de66efa78a268dcdb348520b3
c975229979af06c139b27c56d42cb32a58b16aa5b0b74e28245a06e75be8f35e1d

View File

@ -0,0 +1,14 @@
diff --git a/llvm/lib/Support/Threading.cpp b/llvm/lib/Support/Threading.cpp
index 923935bbc..26594aac8 100644
--- a/llvm/lib/Support/Threading.cpp
+++ b/llvm/lib/Support/Threading.cpp
@@ -77,7 +77,7 @@ unsigned llvm::ThreadPoolStrategy::compute_thread_count() const {
// keyword.
#include "llvm/Support/thread.h"
-#if defined(__APPLE__)
+#if 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

View File

@ -1,2 +1,3 @@
https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.2/llvm-18.1.2.src.tar.xz llvm
https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.2/cmake-18.1.2.src.tar.xz cmake
patches/musl-stack-size.patch