diff options
Diffstat (limited to 'sys-devel/llvm/llvm-10.0.0.ebuild')
-rw-r--r-- | sys-devel/llvm/llvm-10.0.0.ebuild | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys-devel/llvm/llvm-10.0.0.ebuild b/sys-devel/llvm/llvm-10.0.0.ebuild index c36aefaa55f3..ebb7e7f3f615 100644 --- a/sys-devel/llvm/llvm-10.0.0.ebuild +++ b/sys-devel/llvm/llvm-10.0.0.ebuild @@ -344,6 +344,10 @@ multilib_src_configure() { local CXXFLAGS="${CXXFLAGS} -mno-bmi" fi + # LLVM can have very high memory consumption while linking, + # exhausting the limit on 32-bit linker executable + use x86 && local -x LDFLAGS="${LDFLAGS} -Wl,--no-keep-memory" + # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG" cmake-utils_src_configure |