1 |
commit: 762fdfc8d7b0003bc00367ecc948e4fdd4089c66 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 27 08:46:58 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 30 07:34:46 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=762fdfc8 |
7 |
|
8 |
sys-libs/compiler-rt: Bump to 14.0.3 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
sys-libs/compiler-rt/Manifest | 2 + |
13 |
sys-libs/compiler-rt/compiler-rt-14.0.3.ebuild | 139 +++++++++++++++++++++++++ |
14 |
2 files changed, 141 insertions(+) |
15 |
|
16 |
diff --git a/sys-libs/compiler-rt/Manifest b/sys-libs/compiler-rt/Manifest |
17 |
index ff66dc775cb3..716655034895 100644 |
18 |
--- a/sys-libs/compiler-rt/Manifest |
19 |
+++ b/sys-libs/compiler-rt/Manifest |
20 |
@@ -1,7 +1,9 @@ |
21 |
DIST llvm-gentoo-patchset-12.0.1.tar.xz 5280 BLAKE2B 963d005bc7b636570be90eb841ac5bcaeb927538cc7de27683167111a17d6496677c7517de2ecfaf14b5d8ac22bad357be490b8a2ed9aba502fd5f447ecc99e9 SHA512 fc7c38e671555751650299c3a8bee44d5c7f26e11b68d5538c507fb7fe9ff2d349bdcd43bce90a448a747f082d523b3849d6bcda5e3ae2e998edcb926d6aa249 |
22 |
DIST llvm-gentoo-patchset-13.0.1.tar.xz 6288 BLAKE2B 899222b962486e924e4f8a2b574d285531a3f87af9385ff68c81db92aa224a0cde6d4ee049b5405056bedb4b232b50e1d5840024071a4a215f6311853304c92d SHA512 b2805337f1deca626768a44c5e7ac9ed16e0c31bead1647d44a493a8123c1b8e8f1c8ceee3536bcc6fa87fdd3fcec408229f701adf30eff07e7ef9889b847b01 |
23 |
DIST llvm-gentoo-patchset-14.0.1.tar.xz 4724 BLAKE2B 2689298c687fa8b5fa2545afccc248c00ff6778f1a14e3e7999e5d52a1b0b9c3b2e66e8c008e27c62c6c3c08009dc7d9d083ca53698138258ac972e4ad03c042 SHA512 a9f071ad0a792f558105a64790f9e470d8aaed05bd1baabbe86539760c881f772602a03265e0962d8599f991f7fd44d14a49e2ef9d74bb5eb283f473f4084d32 |
24 |
+DIST llvm-gentoo-patchset-14.0.3.tar.xz 5492 BLAKE2B 48a46d50a81c5572d1573c6923bc404b198f74ee8587a928e0858553dac37f7fa39cc969d72b938ef3d2f04f6872f9e2e2478821ab90c657ecbbacb3f7d99d7a SHA512 b917b549de6d46cd7aab3e59b888b5e5ffb955435b33d6538be2f31dc30217a24740a673cb6bb661087c245121edb079052b179badaf70b86b985ca69b3652a6 |
25 |
DIST llvm-gentoo-patchset-9999-1.tar.xz 4032 BLAKE2B b9413484dafed8ae0c68c2c164b45fd07bb8d5d0898f03abe118fd2120ffcb1fb6c949de9649a97c2e8105f24b9d131a725c67c0a502ca4d4d192c1a0d65f49d SHA512 e64449eeaf756c5bd945109937b84ba4bd8a015222bd792d39cf3947871e87571a4ca57814790e51544cb05ad4c2d1f044e818e4caaac7c2e2a02cb1aa290fcc |
26 |
DIST llvmorg-12.0.1.tar.gz 134259748 BLAKE2B f41de787bc73ff2edfda1b22cc8602be6f65f37dd9e4c8888533cfa8c3ccdcf4f108aaab9de23ab0ab987966eb160f2a553a0bdff99461e71ddd5bfcd086090d SHA512 6eb0dc18e2c25935fabfdfc48b0114be0939158dfdef7b85b395fe2e71042672446af0e68750aae003c9847d10d1f63316fe95d3df738d18f249174292b1b9e1 |
27 |
DIST llvmorg-13.0.1.tar.gz 147290251 BLAKE2B 2a44b012a672501761d0c27c6b3a315b69bfef0cd13b078a7e7d2fccc4a9c8c0f2bee0f164c4271c9106b0a99cb06e8b64986f66253b613336719fb86b82541b SHA512 9a8cb5d11964ba88b7624f19ec861fb28701f23956ea3c92f6ac644332d5f41fde97bd8933dd3ee70ed378058c252fa3a3887c8d1af90d219970c2b27691166f |
28 |
DIST llvmorg-14.0.1.tar.gz 158074615 BLAKE2B bf80366461580058494eb101646efcd1a8b55a66818a710c2eb8c649bf88c02fe4552cecf4c1c8637a64e7cee8d644bca31aafc804765ed18f2b5e2975dd6c92 SHA512 0a15aa9cfc978a7b03a1659a2affad65ede66d280f5c12bf0beaaf194cd7bdd57ff438b5f40e64c1e1b88f368de99be349e9d30b544d2bbe4a50f0ebed3307f2 |
29 |
+DIST llvmorg-14.0.3.tar.gz 158092596 BLAKE2B ef901df510ec6bc1242595ec330e9c9ee76e696b077d67a8d62b53608c3d18b2f2d7ea3150864e13d9b37a8ce899ebca946ebe72cbc4538700176e20859ddec2 SHA512 511e93fd9b1c414c38fe9e2649679ac0b16cb04f7f7838569d187b04c542a185e364d6db73e96465026e3b2533649eb75ac95507d12514af32b28bdfb66f2646 |
30 |
|
31 |
diff --git a/sys-libs/compiler-rt/compiler-rt-14.0.3.ebuild b/sys-libs/compiler-rt/compiler-rt-14.0.3.ebuild |
32 |
new file mode 100644 |
33 |
index 000000000000..dcbada06ccf0 |
34 |
--- /dev/null |
35 |
+++ b/sys-libs/compiler-rt/compiler-rt-14.0.3.ebuild |
36 |
@@ -0,0 +1,139 @@ |
37 |
+# Copyright 1999-2022 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=8 |
41 |
+ |
42 |
+PYTHON_COMPAT=( python3_{8..10} ) |
43 |
+inherit cmake flag-o-matic llvm llvm.org python-any-r1 toolchain-funcs |
44 |
+ |
45 |
+DESCRIPTION="Compiler runtime library for clang (built-in part)" |
46 |
+HOMEPAGE="https://llvm.org/" |
47 |
+ |
48 |
+LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )" |
49 |
+SLOT="$(ver_cut 1-3)" |
50 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~ppc-macos ~x64-macos" |
51 |
+IUSE="+abi_x86_32 abi_x86_64 +clang debug test" |
52 |
+RESTRICT="!test? ( test ) !clang? ( test )" |
53 |
+ |
54 |
+CLANG_SLOT=${SLOT%%.*} |
55 |
+# llvm-6 for new lit options |
56 |
+DEPEND=" |
57 |
+ >=sys-devel/llvm-6 |
58 |
+" |
59 |
+BDEPEND=" |
60 |
+ >=dev-util/cmake-3.16 |
61 |
+ clang? ( sys-devel/clang ) |
62 |
+ test? ( |
63 |
+ $(python_gen_any_dep ">=dev-python/lit-9.0.1[\${PYTHON_USEDEP}]") |
64 |
+ =sys-devel/clang-${PV%_*}*:${CLANG_SLOT} |
65 |
+ ) |
66 |
+ !test? ( |
67 |
+ ${PYTHON_DEPS} |
68 |
+ ) |
69 |
+" |
70 |
+ |
71 |
+LLVM_COMPONENTS=( compiler-rt cmake ) |
72 |
+LLVM_PATCHSET=${PV} |
73 |
+llvm.org_set_globals |
74 |
+ |
75 |
+python_check_deps() { |
76 |
+ use test || return 0 |
77 |
+ has_version "dev-python/lit[${PYTHON_USEDEP}]" |
78 |
+} |
79 |
+ |
80 |
+pkg_pretend() { |
81 |
+ if ! use clang && ! tc-is-clang; then |
82 |
+ ewarn "Building using a compiler other than clang may result in broken atomics" |
83 |
+ ewarn "library. Enable USE=clang unless you have a very good reason not to." |
84 |
+ fi |
85 |
+} |
86 |
+ |
87 |
+pkg_setup() { |
88 |
+ # Darwin Prefix builds do not have llvm installed yet, so rely on |
89 |
+ # bootstrap-prefix to set the appropriate path vars to LLVM instead |
90 |
+ # of using llvm_pkg_setup. |
91 |
+ if [[ ${CHOST} != *-darwin* ]] || has_version dev-lang/llvm; then |
92 |
+ llvm_pkg_setup |
93 |
+ fi |
94 |
+ python-any-r1_pkg_setup |
95 |
+} |
96 |
+ |
97 |
+test_compiler() { |
98 |
+ $(tc-getCC) ${CFLAGS} ${LDFLAGS} "${@}" -o /dev/null -x c - \ |
99 |
+ <<<'int main() { return 0; }' &>/dev/null |
100 |
+} |
101 |
+ |
102 |
+src_configure() { |
103 |
+ # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 |
104 |
+ use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG" |
105 |
+ |
106 |
+ # pre-set since we need to pass it to cmake |
107 |
+ BUILD_DIR=${WORKDIR}/${P}_build |
108 |
+ |
109 |
+ local nolib_flags=( -nodefaultlibs -lc ) |
110 |
+ if use clang; then |
111 |
+ local -x CC=${CHOST}-clang |
112 |
+ local -x CXX=${CHOST}-clang++ |
113 |
+ strip-unsupported-flags |
114 |
+ # ensure we can use clang before installing compiler-rt |
115 |
+ local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}" |
116 |
+ elif ! test_compiler; then |
117 |
+ if test_compiler "${nolib_flags[@]}"; then |
118 |
+ local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}" |
119 |
+ ewarn "${CC} seems to lack runtime, trying with ${nolib_flags[*]}" |
120 |
+ fi |
121 |
+ fi |
122 |
+ |
123 |
+ local mycmakeargs=( |
124 |
+ -DCOMPILER_RT_INSTALL_PATH="${EPREFIX}/usr/lib/clang/${SLOT}" |
125 |
+ |
126 |
+ -DCOMPILER_RT_INCLUDE_TESTS=$(usex test) |
127 |
+ -DCOMPILER_RT_BUILD_LIBFUZZER=OFF |
128 |
+ -DCOMPILER_RT_BUILD_MEMPROF=OFF |
129 |
+ -DCOMPILER_RT_BUILD_ORC=OFF |
130 |
+ -DCOMPILER_RT_BUILD_PROFILE=OFF |
131 |
+ -DCOMPILER_RT_BUILD_SANITIZERS=OFF |
132 |
+ -DCOMPILER_RT_BUILD_XRAY=OFF |
133 |
+ |
134 |
+ -DPython3_EXECUTABLE="${PYTHON}" |
135 |
+ ) |
136 |
+ |
137 |
+ if use amd64; then |
138 |
+ mycmakeargs+=( |
139 |
+ -DCAN_TARGET_i386=$(usex abi_x86_32) |
140 |
+ -DCAN_TARGET_x86_64=$(usex abi_x86_64) |
141 |
+ ) |
142 |
+ fi |
143 |
+ |
144 |
+ if use prefix && [[ "${CHOST}" == *-darwin* ]] ; then |
145 |
+ mycmakeargs+=( |
146 |
+ # setting -isysroot is disabled with compiler-rt-prefix-paths.patch |
147 |
+ # this allows adding arm64 support using SDK in EPREFIX |
148 |
+ -DDARWIN_macosx_CACHED_SYSROOT="${EPREFIX}/MacOSX.sdk" |
149 |
+ # Set version based on the SDK in EPREFIX. |
150 |
+ # This disables i386 for SDK >= 10.15 |
151 |
+ -DDARWIN_macosx_OVERRIDE_SDK_VERSION="$(realpath ${EPREFIX}/MacOSX.sdk | sed -e 's/.*MacOSX\(.*\)\.sdk/\1/')" |
152 |
+ # Use our libtool instead of looking it up with xcrun |
153 |
+ -DCMAKE_LIBTOOL="${EPREFIX}/usr/bin/${CHOST}-libtool" |
154 |
+ ) |
155 |
+ fi |
156 |
+ |
157 |
+ if use test; then |
158 |
+ mycmakeargs+=( |
159 |
+ -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" |
160 |
+ -DLLVM_LIT_ARGS="$(get_lit_flags)" |
161 |
+ |
162 |
+ -DCOMPILER_RT_TEST_COMPILER="${EPREFIX}/usr/lib/llvm/${CLANG_SLOT}/bin/clang" |
163 |
+ -DCOMPILER_RT_TEST_CXX_COMPILER="${EPREFIX}/usr/lib/llvm/${CLANG_SLOT}/bin/clang++" |
164 |
+ ) |
165 |
+ fi |
166 |
+ |
167 |
+ cmake_src_configure |
168 |
+} |
169 |
+ |
170 |
+src_test() { |
171 |
+ # respect TMPDIR! |
172 |
+ local -x LIT_PRESERVES_TMP=1 |
173 |
+ |
174 |
+ cmake_build check-builtins |
175 |
+} |