Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/llvm/
Date: Mon, 29 Jun 2020 15:05:12
Message-Id: 1593443097.c854f9dddefb1a826a82b7e23fcba7162ce9d409.mgorny@gentoo
1 commit: c854f9dddefb1a826a82b7e23fcba7162ce9d409
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 29 15:02:36 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 29 15:04:57 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c854f9dd
7
8 sys-devel/llvm: Pass -Wl,--no-keep-memory to linker on x86
9
10 Closes: https://bugs.gentoo.org/730050
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 sys-devel/llvm/llvm-10.0.0.ebuild | 4 ++++
14 sys-devel/llvm/llvm-10.0.1.9999.ebuild | 4 ++++
15 sys-devel/llvm/llvm-10.0.1_rc1.ebuild | 4 ++++
16 sys-devel/llvm/llvm-11.0.0.9999.ebuild | 4 ++++
17 4 files changed, 16 insertions(+)
18
19 diff --git a/sys-devel/llvm/llvm-10.0.0.ebuild b/sys-devel/llvm/llvm-10.0.0.ebuild
20 index c36aefaa55f..ebb7e7f3f61 100644
21 --- a/sys-devel/llvm/llvm-10.0.0.ebuild
22 +++ b/sys-devel/llvm/llvm-10.0.0.ebuild
23 @@ -344,6 +344,10 @@ multilib_src_configure() {
24 local CXXFLAGS="${CXXFLAGS} -mno-bmi"
25 fi
26
27 + # LLVM can have very high memory consumption while linking,
28 + # exhausting the limit on 32-bit linker executable
29 + use x86 && local -x LDFLAGS="${LDFLAGS} -Wl,--no-keep-memory"
30 +
31 # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
32 use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG"
33 cmake-utils_src_configure
34
35 diff --git a/sys-devel/llvm/llvm-10.0.1.9999.ebuild b/sys-devel/llvm/llvm-10.0.1.9999.ebuild
36 index 6bf2a545f96..0cbd220d563 100644
37 --- a/sys-devel/llvm/llvm-10.0.1.9999.ebuild
38 +++ b/sys-devel/llvm/llvm-10.0.1.9999.ebuild
39 @@ -432,6 +432,10 @@ multilib_src_configure() {
40 local CXXFLAGS="${CXXFLAGS} -mno-bmi"
41 fi
42
43 + # LLVM can have very high memory consumption while linking,
44 + # exhausting the limit on 32-bit linker executable
45 + use x86 && local -x LDFLAGS="${LDFLAGS} -Wl,--no-keep-memory"
46 +
47 # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
48 use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG"
49 cmake_src_configure
50
51 diff --git a/sys-devel/llvm/llvm-10.0.1_rc1.ebuild b/sys-devel/llvm/llvm-10.0.1_rc1.ebuild
52 index 5ac7c6e2a8c..bc805c1b4d3 100644
53 --- a/sys-devel/llvm/llvm-10.0.1_rc1.ebuild
54 +++ b/sys-devel/llvm/llvm-10.0.1_rc1.ebuild
55 @@ -397,6 +397,10 @@ multilib_src_configure() {
56 local CXXFLAGS="${CXXFLAGS} -mno-bmi"
57 fi
58
59 + # LLVM can have very high memory consumption while linking,
60 + # exhausting the limit on 32-bit linker executable
61 + use x86 && local -x LDFLAGS="${LDFLAGS} -Wl,--no-keep-memory"
62 +
63 # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
64 use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG"
65 cmake_src_configure
66
67 diff --git a/sys-devel/llvm/llvm-11.0.0.9999.ebuild b/sys-devel/llvm/llvm-11.0.0.9999.ebuild
68 index 877b10f6388..087e2736708 100644
69 --- a/sys-devel/llvm/llvm-11.0.0.9999.ebuild
70 +++ b/sys-devel/llvm/llvm-11.0.0.9999.ebuild
71 @@ -428,6 +428,10 @@ multilib_src_configure() {
72 local CXXFLAGS="${CXXFLAGS} -mno-bmi"
73 fi
74
75 + # LLVM can have very high memory consumption while linking,
76 + # exhausting the limit on 32-bit linker executable
77 + use x86 && local -x LDFLAGS="${LDFLAGS} -Wl,--no-keep-memory"
78 +
79 # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
80 use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG"
81 cmake_src_configure