Skip to content

Commit

Permalink
main/clang: increase default thread stack size to 2MiB
Browse files Browse the repository at this point in the history
Apparently clang++ crashes when building chromium due to stack overflow.

ref #11086
upstream report: llvm/llvm-project#76
  • Loading branch information
ncopa committed Dec 26, 2019
1 parent 62ce349 commit 32438e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/clang/APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
pkgname=clang
# Note: Update together with llvm.
pkgver=9.0.1
pkgrel=1
pkgrel=2
_llvmver=${pkgver%%.*}
pkgdesc="A C language family front-end for LLVM"
arch="all"
Expand Down Expand Up @@ -51,7 +51,7 @@ build() {
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_C_FLAGS_MINSIZEREL_INIT="$CFLAGS" \
-DCMAKE_CXX_FLAGS_MINSIZEREL_INIT="$CXXFLAGS" \
-DCMAKE_EXE_LINKER_FLAGS_MINSIZEREL_INIT="$LDFLAGS" \
-DCMAKE_EXE_LINKER_FLAGS_MINSIZEREL_INIT="$LDFLAGS -Wl,-z,stack-size=2097152" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_VERBOSE_MAKEFILE=OFF \
-DCLANG_VENDOR=Alpine \
Expand Down

0 comments on commit 32438e1

Please sign in to comment.