Skip to content

Commit

Permalink
community/lld: set default thread stack size to 2MB
Browse files Browse the repository at this point in the history
lld uses std::call_once to create threads and apparently it uses much
stack space when linking things like chromium. Increase the default
stack size to 2MB (which is the double what windows has)

fixes #11086
  • Loading branch information
ncopa committed Dec 26, 2019
1 parent de347da commit bdd27fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions community/lld/APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=lld
pkgver=9.0.1
pkgrel=0
pkgrel=1
_llvmver=${pkgver%%.*}
pkgdesc="The LLVM Linker"
url="https://llvm.org"
Expand All @@ -30,7 +30,7 @@ build() {
-DCMAKE_VERBOSE_MAKEFILE=OFF \
-DCMAKE_C_FLAGS_MINSIZEREL_INIT="$CFLAGS" \
-DCMAKE_CXX_FLAGS_MINSIZEREL_INIT="$CXXFLAGS -fpermissive" \
-DCMAKE_EXE_LINKER_FLAGS_MINSIZEREL_INIT="$LDFLAGS" \
-DCMAKE_EXE_LINKER_FLAGS_MINSIZEREL_INIT="$LDFLAGS -Wl,-z,stack-size=2097152" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_SKIP_INSTALL_RPATH=ON \
-DLLVM_INCLUDE_TESTS=ON
Expand Down

0 comments on commit bdd27fe

Please sign in to comment.