| 1 | Patch-Source: https://github.com/chimera-linux/cports/blob/8c0359f31b9d888e59ced0320e93ca8ad79ba1f9/main/llvm/patches/0010-always-set-a-larger-stack-size-explicitly.patch
|
| 2 | From 18e09846d9333b554e3dfbbd768ada6643bf92c0 Mon Sep 17 00:00:00 2001
|
| 3 | From: Daniel Kolesa <[email protected]>
|
| 4 | Date: Sat, 27 Nov 2021 01:03:28 +0100
|
| 5 | Subject: [PATCH 10/22] always set a larger stack size explicitly
|
| 6 |
|
| 7 | ---
|
| 8 | llvm/lib/Support/Threading.cpp | 9 ---------
|
| 9 | 1 file changed, 9 deletions(-)
|
| 10 |
|
| 11 | diff --git a/llvm/lib/Support/Threading.cpp b/llvm/lib/Support/Threading.cpp
|
| 12 | index 923935bbc..26594aac8 100644
|
| 13 | |
| 14 | |
| 15 | @@ -77,7 +77,7 @@ unsigned llvm::ThreadPoolStrategy::compute_thread_count() const {
|
| 16 | // keyword.
|
| 17 | #include "llvm/Support/thread.h"
|
| 18 |
|
| 19 | -#if defined(__APPLE__)
|
| 20 | +#if 1
|
| 21 | // Darwin's default stack size for threads except the main one is only 512KB,
|
| 22 | // which is not enough for some/many normal LLVM compilations. This implements
|
| 23 | // the same interface as std::thread but requests the same stack size as the
|