1 |
commit: f84afe15a885b6ac2af59f6d56f2cc924d7ba894 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 15 20:37:44 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 15 20:44:26 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f84afe15 |
7 |
|
8 |
sys-libs/compiler-rt: Remove 12.0.0 RCs |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
sys-libs/compiler-rt/Manifest | 4 - |
13 |
sys-libs/compiler-rt/compiler-rt-12.0.0_rc2.ebuild | 127 --------------------- |
14 |
sys-libs/compiler-rt/compiler-rt-12.0.0_rc3.ebuild | 127 --------------------- |
15 |
sys-libs/compiler-rt/compiler-rt-12.0.0_rc4.ebuild | 127 --------------------- |
16 |
sys-libs/compiler-rt/compiler-rt-12.0.0_rc5.ebuild | 127 --------------------- |
17 |
5 files changed, 512 deletions(-) |
18 |
|
19 |
diff --git a/sys-libs/compiler-rt/Manifest b/sys-libs/compiler-rt/Manifest |
20 |
index 087d75cb29b..09cfebc2769 100644 |
21 |
--- a/sys-libs/compiler-rt/Manifest |
22 |
+++ b/sys-libs/compiler-rt/Manifest |
23 |
@@ -2,8 +2,4 @@ DIST llvmorg-10.0.1.tar.gz 120880730 BLAKE2B 30f19f56c4d1f6abcda5fec76256219d1e3 |
24 |
DIST llvmorg-11.0.0.tar.gz 122743665 BLAKE2B 3f95570240789fd68ddb747df817f5c6cdc9da40911bbe9ee3531c15ada9165e5002b1c2f778cf8735858485ea05a8754e3d3a5f4b15bdd6cb33d64a14692984 SHA512 b6d38871ccce0e086e27d35e42887618d68e57d8274735c59e3eabc42dee352412489296293f8d5169fe0044936345915ee7da61ebdc64ec10f7737f6ecd90f2 |
25 |
DIST llvmorg-11.0.1.tar.gz 122790338 BLAKE2B 0130996b4a8c4d9f757136fd7fb318068c9bfdc565060dec0d4336480c4ab66c4ae3185a7fdb05f13cf9ee8fd4123b09df938881b75d6e5d3689595114b7e32a SHA512 f5e6ef0b3111aae08a89cd01adb2ff4abfa9ef779c68b9190421d0447efd25c2cc00e5aae9f4764805f5fa31434866043d1510ae7389817e28ae53a5442e2fdf |
26 |
DIST llvmorg-11.1.0.tar.gz 122776532 BLAKE2B ca842ff4afff8f44c82b5e7383962a9c45ca1c93b64fa4c6ebcd70a1d3849dbad2b8e4e24fba02d144c6266d7fab3607ebc6999b28c229cb35256cf40f26a985 SHA512 9a8ce022a935eed42fa71a224f2a207122aadcbef58ee855fdb4825f879e7d028e4dcff22c19b9d336db1c8bf63fb84372d44981acf84615f757e54306c92b81 |
27 |
-DIST llvmorg-12.0.0-rc2.tar.gz 134242619 BLAKE2B bb741a311db608fc2ba7eeaab71c5c9f2a430f7fee3f0c5c4334e5c14caa19738d18c87b568de963d57d9b53e808ac412cf8554eca7fcae9ecca65aa4442e197 SHA512 d8f9b3dfeb0fe9b91eb7f49da393784333044db2653373fbb168afd3c8d50f3e3ec7a7b8f44df522d0facafbfe4cfc4d9e2906d19f1e6feb0bdc569b6c10a17d |
28 |
-DIST llvmorg-12.0.0-rc3.tar.gz 134244008 BLAKE2B ed09aa361b264387711ba1ee2e4b01c0c78ad97391df95e2542d4edc31f657cc33c8a2a45de63eb421908d5dadd9392a736610fbb04b3ecbd336d6514a649da8 SHA512 1fae53c6f255160cf4be53848b8b92c8b162ddcfbddf1bf0017faf249859040c15c862c4b52bc3ba894149139afb814e0674da88793ddebfc0756ba3aa7626ce |
29 |
-DIST llvmorg-12.0.0-rc4.tar.gz 134245842 BLAKE2B 860a0551a42e2c6a28f213c151076c5ae64a9d85f7bfb2e2df4737acd5fe968f29d368a689d9a857e01038587e872722d216f044b3f665857d7ed71122fe334e SHA512 20e4440664227c9ea7af84df3643599cd7c96f5e2b6404c42be0ce0f0d7f989f5c7b8df1f1ba93d1473d3a30325cda5a53d3900c0229ccb042b365583b5aa846 |
30 |
-DIST llvmorg-12.0.0-rc5.tar.gz 134247991 BLAKE2B 9721e211d39611f9c48b57386fb57c1dcf964c39ff5f32c593a6390c06659fcd5a1f76063004d2ecd3d1af32281a69994c7478b7fdfacd9f50ebf5fbb2050a71 SHA512 a289fdc55c25454e8cbfd370387fdd11c7555d03b3c479213e37dd01189c077d67bd04b8cab62ce82f3746877f5f02619afb3a5110191048511efee38c191d16 |
31 |
DIST llvmorg-12.0.0.tar.gz 134226215 BLAKE2B f9c3ba8c58571855caa4f206fd285c9b5be66672fb0814cb8bc0964a051f57f5d35013aa1e27cbda502652b37df1ec23474129109e76a42066847860db441dbe SHA512 0cff02155c5ac0d6db2b72d60d9819d5b5dd859663b45f721b1c7540239c2fceb1f57d9173f6870c49de851c242ed8e85c5c6d6577a1f8092a7c5dcd12513b26 |
32 |
|
33 |
diff --git a/sys-libs/compiler-rt/compiler-rt-12.0.0_rc2.ebuild b/sys-libs/compiler-rt/compiler-rt-12.0.0_rc2.ebuild |
34 |
deleted file mode 100644 |
35 |
index e66cf796efb..00000000000 |
36 |
--- a/sys-libs/compiler-rt/compiler-rt-12.0.0_rc2.ebuild |
37 |
+++ /dev/null |
38 |
@@ -1,127 +0,0 @@ |
39 |
-# Copyright 1999-2021 Gentoo Authors |
40 |
-# Distributed under the terms of the GNU General Public License v2 |
41 |
- |
42 |
-EAPI=7 |
43 |
- |
44 |
-PYTHON_COMPAT=( python3_{7..9} ) |
45 |
-inherit cmake flag-o-matic llvm llvm.org python-any-r1 toolchain-funcs |
46 |
- |
47 |
-DESCRIPTION="Compiler runtime library for clang (built-in part)" |
48 |
-HOMEPAGE="https://llvm.org/" |
49 |
- |
50 |
-LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )" |
51 |
-SLOT="$(ver_cut 1-3)" |
52 |
-KEYWORDS="" |
53 |
-IUSE="+clang test" |
54 |
-RESTRICT="!test? ( test ) !clang? ( test )" |
55 |
- |
56 |
-CLANG_SLOT=${SLOT%%.*} |
57 |
-# llvm-6 for new lit options |
58 |
-DEPEND=" |
59 |
- >=sys-devel/llvm-6" |
60 |
-BDEPEND=" |
61 |
- >=dev-util/cmake-3.16 |
62 |
- clang? ( sys-devel/clang ) |
63 |
- test? ( |
64 |
- $(python_gen_any_dep ">=dev-python/lit-9.0.1[\${PYTHON_USEDEP}]") |
65 |
- =sys-devel/clang-${PV%_*}*:${CLANG_SLOT} |
66 |
- ) |
67 |
- ${PYTHON_DEPS}" |
68 |
- |
69 |
-LLVM_COMPONENTS=( compiler-rt ) |
70 |
-llvm.org_set_globals |
71 |
- |
72 |
-PATCHES=( |
73 |
- "${FILESDIR}/9999/${PN}-prefix-paths.patch" |
74 |
-) |
75 |
- |
76 |
-python_check_deps() { |
77 |
- use test || return 0 |
78 |
- has_version "dev-python/lit[${PYTHON_USEDEP}]" |
79 |
-} |
80 |
- |
81 |
-pkg_pretend() { |
82 |
- if ! use clang && ! tc-is-clang; then |
83 |
- ewarn "Building using a compiler other than clang may result in broken atomics" |
84 |
- ewarn "library. Enable USE=clang unless you have a very good reason not to." |
85 |
- fi |
86 |
-} |
87 |
- |
88 |
-pkg_setup() { |
89 |
- # Darwin Prefix builds do not have llvm installed yet, so rely on |
90 |
- # bootstrap-prefix to set the appropriate path vars to LLVM instead |
91 |
- # of using llvm_pkg_setup. |
92 |
- if [[ ${CHOST} != *-darwin* ]] || has_version dev-lang/llvm; then |
93 |
- llvm_pkg_setup |
94 |
- fi |
95 |
- python-any-r1_pkg_setup |
96 |
-} |
97 |
- |
98 |
-test_compiler() { |
99 |
- $(tc-getCC) ${CFLAGS} ${LDFLAGS} "${@}" -o /dev/null -x c - \ |
100 |
- <<<'int main() { return 0; }' &>/dev/null |
101 |
-} |
102 |
- |
103 |
-src_configure() { |
104 |
- # pre-set since we need to pass it to cmake |
105 |
- BUILD_DIR=${WORKDIR}/${P}_build |
106 |
- |
107 |
- local nolib_flags=( -nodefaultlibs -lc ) |
108 |
- if use clang; then |
109 |
- local -x CC=${CHOST}-clang |
110 |
- local -x CXX=${CHOST}-clang++ |
111 |
- strip-unsupported-flags |
112 |
- # ensure we can use clang before installing compiler-rt |
113 |
- local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}" |
114 |
- elif ! test_compiler; then |
115 |
- if test_compiler "${nolib_flags[@]}"; then |
116 |
- local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}" |
117 |
- ewarn "${CC} seems to lack runtime, trying with ${nolib_flags[*]}" |
118 |
- fi |
119 |
- fi |
120 |
- |
121 |
- local mycmakeargs=( |
122 |
- -DCOMPILER_RT_INSTALL_PATH="${EPREFIX}/usr/lib/clang/${SLOT}" |
123 |
- |
124 |
- -DCOMPILER_RT_INCLUDE_TESTS=$(usex test) |
125 |
- -DCOMPILER_RT_BUILD_LIBFUZZER=OFF |
126 |
- -DCOMPILER_RT_BUILD_MEMPROF=OFF |
127 |
- -DCOMPILER_RT_BUILD_PROFILE=OFF |
128 |
- -DCOMPILER_RT_BUILD_SANITIZERS=OFF |
129 |
- -DCOMPILER_RT_BUILD_XRAY=OFF |
130 |
- |
131 |
- -DPython3_EXECUTABLE="${PYTHON}" |
132 |
- ) |
133 |
- |
134 |
- if use prefix && [[ "${CHOST}" == *-darwin* ]] ; then |
135 |
- mycmakeargs+=( |
136 |
- # setting -isysroot is disabled with compiler-rt-prefix-paths.patch |
137 |
- # this allows adding arm64 support using SDK in EPREFIX |
138 |
- -DDARWIN_macosx_CACHED_SYSROOT="${EPREFIX}/MacOSX.sdk" |
139 |
- # Set version based on the SDK in EPREFIX. |
140 |
- # This disables i386 for SDK >= 10.15 |
141 |
- -DDARWIN_macosx_OVERRIDE_SDK_VERSION="$(realpath ${EPREFIX}/MacOSX.sdk | sed -e 's/.*MacOSX\(.*\)\.sdk/\1/')" |
142 |
- # Use our libtool instead of looking it up with xcrun |
143 |
- -DCMAKE_LIBTOOL="${EPREFIX}/usr/bin/${CHOST}-libtool" |
144 |
- ) |
145 |
- fi |
146 |
- |
147 |
- if use test; then |
148 |
- mycmakeargs+=( |
149 |
- -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" |
150 |
- -DLLVM_LIT_ARGS="$(get_lit_flags)" |
151 |
- |
152 |
- -DCOMPILER_RT_TEST_COMPILER="${EPREFIX}/usr/lib/llvm/${CLANG_SLOT}/bin/clang" |
153 |
- -DCOMPILER_RT_TEST_CXX_COMPILER="${EPREFIX}/usr/lib/llvm/${CLANG_SLOT}/bin/clang++" |
154 |
- ) |
155 |
- fi |
156 |
- |
157 |
- cmake_src_configure |
158 |
-} |
159 |
- |
160 |
-src_test() { |
161 |
- # respect TMPDIR! |
162 |
- local -x LIT_PRESERVES_TMP=1 |
163 |
- |
164 |
- cmake_build check-builtins |
165 |
-} |
166 |
|
167 |
diff --git a/sys-libs/compiler-rt/compiler-rt-12.0.0_rc3.ebuild b/sys-libs/compiler-rt/compiler-rt-12.0.0_rc3.ebuild |
168 |
deleted file mode 100644 |
169 |
index e66cf796efb..00000000000 |
170 |
--- a/sys-libs/compiler-rt/compiler-rt-12.0.0_rc3.ebuild |
171 |
+++ /dev/null |
172 |
@@ -1,127 +0,0 @@ |
173 |
-# Copyright 1999-2021 Gentoo Authors |
174 |
-# Distributed under the terms of the GNU General Public License v2 |
175 |
- |
176 |
-EAPI=7 |
177 |
- |
178 |
-PYTHON_COMPAT=( python3_{7..9} ) |
179 |
-inherit cmake flag-o-matic llvm llvm.org python-any-r1 toolchain-funcs |
180 |
- |
181 |
-DESCRIPTION="Compiler runtime library for clang (built-in part)" |
182 |
-HOMEPAGE="https://llvm.org/" |
183 |
- |
184 |
-LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )" |
185 |
-SLOT="$(ver_cut 1-3)" |
186 |
-KEYWORDS="" |
187 |
-IUSE="+clang test" |
188 |
-RESTRICT="!test? ( test ) !clang? ( test )" |
189 |
- |
190 |
-CLANG_SLOT=${SLOT%%.*} |
191 |
-# llvm-6 for new lit options |
192 |
-DEPEND=" |
193 |
- >=sys-devel/llvm-6" |
194 |
-BDEPEND=" |
195 |
- >=dev-util/cmake-3.16 |
196 |
- clang? ( sys-devel/clang ) |
197 |
- test? ( |
198 |
- $(python_gen_any_dep ">=dev-python/lit-9.0.1[\${PYTHON_USEDEP}]") |
199 |
- =sys-devel/clang-${PV%_*}*:${CLANG_SLOT} |
200 |
- ) |
201 |
- ${PYTHON_DEPS}" |
202 |
- |
203 |
-LLVM_COMPONENTS=( compiler-rt ) |
204 |
-llvm.org_set_globals |
205 |
- |
206 |
-PATCHES=( |
207 |
- "${FILESDIR}/9999/${PN}-prefix-paths.patch" |
208 |
-) |
209 |
- |
210 |
-python_check_deps() { |
211 |
- use test || return 0 |
212 |
- has_version "dev-python/lit[${PYTHON_USEDEP}]" |
213 |
-} |
214 |
- |
215 |
-pkg_pretend() { |
216 |
- if ! use clang && ! tc-is-clang; then |
217 |
- ewarn "Building using a compiler other than clang may result in broken atomics" |
218 |
- ewarn "library. Enable USE=clang unless you have a very good reason not to." |
219 |
- fi |
220 |
-} |
221 |
- |
222 |
-pkg_setup() { |
223 |
- # Darwin Prefix builds do not have llvm installed yet, so rely on |
224 |
- # bootstrap-prefix to set the appropriate path vars to LLVM instead |
225 |
- # of using llvm_pkg_setup. |
226 |
- if [[ ${CHOST} != *-darwin* ]] || has_version dev-lang/llvm; then |
227 |
- llvm_pkg_setup |
228 |
- fi |
229 |
- python-any-r1_pkg_setup |
230 |
-} |
231 |
- |
232 |
-test_compiler() { |
233 |
- $(tc-getCC) ${CFLAGS} ${LDFLAGS} "${@}" -o /dev/null -x c - \ |
234 |
- <<<'int main() { return 0; }' &>/dev/null |
235 |
-} |
236 |
- |
237 |
-src_configure() { |
238 |
- # pre-set since we need to pass it to cmake |
239 |
- BUILD_DIR=${WORKDIR}/${P}_build |
240 |
- |
241 |
- local nolib_flags=( -nodefaultlibs -lc ) |
242 |
- if use clang; then |
243 |
- local -x CC=${CHOST}-clang |
244 |
- local -x CXX=${CHOST}-clang++ |
245 |
- strip-unsupported-flags |
246 |
- # ensure we can use clang before installing compiler-rt |
247 |
- local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}" |
248 |
- elif ! test_compiler; then |
249 |
- if test_compiler "${nolib_flags[@]}"; then |
250 |
- local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}" |
251 |
- ewarn "${CC} seems to lack runtime, trying with ${nolib_flags[*]}" |
252 |
- fi |
253 |
- fi |
254 |
- |
255 |
- local mycmakeargs=( |
256 |
- -DCOMPILER_RT_INSTALL_PATH="${EPREFIX}/usr/lib/clang/${SLOT}" |
257 |
- |
258 |
- -DCOMPILER_RT_INCLUDE_TESTS=$(usex test) |
259 |
- -DCOMPILER_RT_BUILD_LIBFUZZER=OFF |
260 |
- -DCOMPILER_RT_BUILD_MEMPROF=OFF |
261 |
- -DCOMPILER_RT_BUILD_PROFILE=OFF |
262 |
- -DCOMPILER_RT_BUILD_SANITIZERS=OFF |
263 |
- -DCOMPILER_RT_BUILD_XRAY=OFF |
264 |
- |
265 |
- -DPython3_EXECUTABLE="${PYTHON}" |
266 |
- ) |
267 |
- |
268 |
- if use prefix && [[ "${CHOST}" == *-darwin* ]] ; then |
269 |
- mycmakeargs+=( |
270 |
- # setting -isysroot is disabled with compiler-rt-prefix-paths.patch |
271 |
- # this allows adding arm64 support using SDK in EPREFIX |
272 |
- -DDARWIN_macosx_CACHED_SYSROOT="${EPREFIX}/MacOSX.sdk" |
273 |
- # Set version based on the SDK in EPREFIX. |
274 |
- # This disables i386 for SDK >= 10.15 |
275 |
- -DDARWIN_macosx_OVERRIDE_SDK_VERSION="$(realpath ${EPREFIX}/MacOSX.sdk | sed -e 's/.*MacOSX\(.*\)\.sdk/\1/')" |
276 |
- # Use our libtool instead of looking it up with xcrun |
277 |
- -DCMAKE_LIBTOOL="${EPREFIX}/usr/bin/${CHOST}-libtool" |
278 |
- ) |
279 |
- fi |
280 |
- |
281 |
- if use test; then |
282 |
- mycmakeargs+=( |
283 |
- -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" |
284 |
- -DLLVM_LIT_ARGS="$(get_lit_flags)" |
285 |
- |
286 |
- -DCOMPILER_RT_TEST_COMPILER="${EPREFIX}/usr/lib/llvm/${CLANG_SLOT}/bin/clang" |
287 |
- -DCOMPILER_RT_TEST_CXX_COMPILER="${EPREFIX}/usr/lib/llvm/${CLANG_SLOT}/bin/clang++" |
288 |
- ) |
289 |
- fi |
290 |
- |
291 |
- cmake_src_configure |
292 |
-} |
293 |
- |
294 |
-src_test() { |
295 |
- # respect TMPDIR! |
296 |
- local -x LIT_PRESERVES_TMP=1 |
297 |
- |
298 |
- cmake_build check-builtins |
299 |
-} |
300 |
|
301 |
diff --git a/sys-libs/compiler-rt/compiler-rt-12.0.0_rc4.ebuild b/sys-libs/compiler-rt/compiler-rt-12.0.0_rc4.ebuild |
302 |
deleted file mode 100644 |
303 |
index e66cf796efb..00000000000 |
304 |
--- a/sys-libs/compiler-rt/compiler-rt-12.0.0_rc4.ebuild |
305 |
+++ /dev/null |
306 |
@@ -1,127 +0,0 @@ |
307 |
-# Copyright 1999-2021 Gentoo Authors |
308 |
-# Distributed under the terms of the GNU General Public License v2 |
309 |
- |
310 |
-EAPI=7 |
311 |
- |
312 |
-PYTHON_COMPAT=( python3_{7..9} ) |
313 |
-inherit cmake flag-o-matic llvm llvm.org python-any-r1 toolchain-funcs |
314 |
- |
315 |
-DESCRIPTION="Compiler runtime library for clang (built-in part)" |
316 |
-HOMEPAGE="https://llvm.org/" |
317 |
- |
318 |
-LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )" |
319 |
-SLOT="$(ver_cut 1-3)" |
320 |
-KEYWORDS="" |
321 |
-IUSE="+clang test" |
322 |
-RESTRICT="!test? ( test ) !clang? ( test )" |
323 |
- |
324 |
-CLANG_SLOT=${SLOT%%.*} |
325 |
-# llvm-6 for new lit options |
326 |
-DEPEND=" |
327 |
- >=sys-devel/llvm-6" |
328 |
-BDEPEND=" |
329 |
- >=dev-util/cmake-3.16 |
330 |
- clang? ( sys-devel/clang ) |
331 |
- test? ( |
332 |
- $(python_gen_any_dep ">=dev-python/lit-9.0.1[\${PYTHON_USEDEP}]") |
333 |
- =sys-devel/clang-${PV%_*}*:${CLANG_SLOT} |
334 |
- ) |
335 |
- ${PYTHON_DEPS}" |
336 |
- |
337 |
-LLVM_COMPONENTS=( compiler-rt ) |
338 |
-llvm.org_set_globals |
339 |
- |
340 |
-PATCHES=( |
341 |
- "${FILESDIR}/9999/${PN}-prefix-paths.patch" |
342 |
-) |
343 |
- |
344 |
-python_check_deps() { |
345 |
- use test || return 0 |
346 |
- has_version "dev-python/lit[${PYTHON_USEDEP}]" |
347 |
-} |
348 |
- |
349 |
-pkg_pretend() { |
350 |
- if ! use clang && ! tc-is-clang; then |
351 |
- ewarn "Building using a compiler other than clang may result in broken atomics" |
352 |
- ewarn "library. Enable USE=clang unless you have a very good reason not to." |
353 |
- fi |
354 |
-} |
355 |
- |
356 |
-pkg_setup() { |
357 |
- # Darwin Prefix builds do not have llvm installed yet, so rely on |
358 |
- # bootstrap-prefix to set the appropriate path vars to LLVM instead |
359 |
- # of using llvm_pkg_setup. |
360 |
- if [[ ${CHOST} != *-darwin* ]] || has_version dev-lang/llvm; then |
361 |
- llvm_pkg_setup |
362 |
- fi |
363 |
- python-any-r1_pkg_setup |
364 |
-} |
365 |
- |
366 |
-test_compiler() { |
367 |
- $(tc-getCC) ${CFLAGS} ${LDFLAGS} "${@}" -o /dev/null -x c - \ |
368 |
- <<<'int main() { return 0; }' &>/dev/null |
369 |
-} |
370 |
- |
371 |
-src_configure() { |
372 |
- # pre-set since we need to pass it to cmake |
373 |
- BUILD_DIR=${WORKDIR}/${P}_build |
374 |
- |
375 |
- local nolib_flags=( -nodefaultlibs -lc ) |
376 |
- if use clang; then |
377 |
- local -x CC=${CHOST}-clang |
378 |
- local -x CXX=${CHOST}-clang++ |
379 |
- strip-unsupported-flags |
380 |
- # ensure we can use clang before installing compiler-rt |
381 |
- local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}" |
382 |
- elif ! test_compiler; then |
383 |
- if test_compiler "${nolib_flags[@]}"; then |
384 |
- local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}" |
385 |
- ewarn "${CC} seems to lack runtime, trying with ${nolib_flags[*]}" |
386 |
- fi |
387 |
- fi |
388 |
- |
389 |
- local mycmakeargs=( |
390 |
- -DCOMPILER_RT_INSTALL_PATH="${EPREFIX}/usr/lib/clang/${SLOT}" |
391 |
- |
392 |
- -DCOMPILER_RT_INCLUDE_TESTS=$(usex test) |
393 |
- -DCOMPILER_RT_BUILD_LIBFUZZER=OFF |
394 |
- -DCOMPILER_RT_BUILD_MEMPROF=OFF |
395 |
- -DCOMPILER_RT_BUILD_PROFILE=OFF |
396 |
- -DCOMPILER_RT_BUILD_SANITIZERS=OFF |
397 |
- -DCOMPILER_RT_BUILD_XRAY=OFF |
398 |
- |
399 |
- -DPython3_EXECUTABLE="${PYTHON}" |
400 |
- ) |
401 |
- |
402 |
- if use prefix && [[ "${CHOST}" == *-darwin* ]] ; then |
403 |
- mycmakeargs+=( |
404 |
- # setting -isysroot is disabled with compiler-rt-prefix-paths.patch |
405 |
- # this allows adding arm64 support using SDK in EPREFIX |
406 |
- -DDARWIN_macosx_CACHED_SYSROOT="${EPREFIX}/MacOSX.sdk" |
407 |
- # Set version based on the SDK in EPREFIX. |
408 |
- # This disables i386 for SDK >= 10.15 |
409 |
- -DDARWIN_macosx_OVERRIDE_SDK_VERSION="$(realpath ${EPREFIX}/MacOSX.sdk | sed -e 's/.*MacOSX\(.*\)\.sdk/\1/')" |
410 |
- # Use our libtool instead of looking it up with xcrun |
411 |
- -DCMAKE_LIBTOOL="${EPREFIX}/usr/bin/${CHOST}-libtool" |
412 |
- ) |
413 |
- fi |
414 |
- |
415 |
- if use test; then |
416 |
- mycmakeargs+=( |
417 |
- -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" |
418 |
- -DLLVM_LIT_ARGS="$(get_lit_flags)" |
419 |
- |
420 |
- -DCOMPILER_RT_TEST_COMPILER="${EPREFIX}/usr/lib/llvm/${CLANG_SLOT}/bin/clang" |
421 |
- -DCOMPILER_RT_TEST_CXX_COMPILER="${EPREFIX}/usr/lib/llvm/${CLANG_SLOT}/bin/clang++" |
422 |
- ) |
423 |
- fi |
424 |
- |
425 |
- cmake_src_configure |
426 |
-} |
427 |
- |
428 |
-src_test() { |
429 |
- # respect TMPDIR! |
430 |
- local -x LIT_PRESERVES_TMP=1 |
431 |
- |
432 |
- cmake_build check-builtins |
433 |
-} |
434 |
|
435 |
diff --git a/sys-libs/compiler-rt/compiler-rt-12.0.0_rc5.ebuild b/sys-libs/compiler-rt/compiler-rt-12.0.0_rc5.ebuild |
436 |
deleted file mode 100644 |
437 |
index e66cf796efb..00000000000 |
438 |
--- a/sys-libs/compiler-rt/compiler-rt-12.0.0_rc5.ebuild |
439 |
+++ /dev/null |
440 |
@@ -1,127 +0,0 @@ |
441 |
-# Copyright 1999-2021 Gentoo Authors |
442 |
-# Distributed under the terms of the GNU General Public License v2 |
443 |
- |
444 |
-EAPI=7 |
445 |
- |
446 |
-PYTHON_COMPAT=( python3_{7..9} ) |
447 |
-inherit cmake flag-o-matic llvm llvm.org python-any-r1 toolchain-funcs |
448 |
- |
449 |
-DESCRIPTION="Compiler runtime library for clang (built-in part)" |
450 |
-HOMEPAGE="https://llvm.org/" |
451 |
- |
452 |
-LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )" |
453 |
-SLOT="$(ver_cut 1-3)" |
454 |
-KEYWORDS="" |
455 |
-IUSE="+clang test" |
456 |
-RESTRICT="!test? ( test ) !clang? ( test )" |
457 |
- |
458 |
-CLANG_SLOT=${SLOT%%.*} |
459 |
-# llvm-6 for new lit options |
460 |
-DEPEND=" |
461 |
- >=sys-devel/llvm-6" |
462 |
-BDEPEND=" |
463 |
- >=dev-util/cmake-3.16 |
464 |
- clang? ( sys-devel/clang ) |
465 |
- test? ( |
466 |
- $(python_gen_any_dep ">=dev-python/lit-9.0.1[\${PYTHON_USEDEP}]") |
467 |
- =sys-devel/clang-${PV%_*}*:${CLANG_SLOT} |
468 |
- ) |
469 |
- ${PYTHON_DEPS}" |
470 |
- |
471 |
-LLVM_COMPONENTS=( compiler-rt ) |
472 |
-llvm.org_set_globals |
473 |
- |
474 |
-PATCHES=( |
475 |
- "${FILESDIR}/9999/${PN}-prefix-paths.patch" |
476 |
-) |
477 |
- |
478 |
-python_check_deps() { |
479 |
- use test || return 0 |
480 |
- has_version "dev-python/lit[${PYTHON_USEDEP}]" |
481 |
-} |
482 |
- |
483 |
-pkg_pretend() { |
484 |
- if ! use clang && ! tc-is-clang; then |
485 |
- ewarn "Building using a compiler other than clang may result in broken atomics" |
486 |
- ewarn "library. Enable USE=clang unless you have a very good reason not to." |
487 |
- fi |
488 |
-} |
489 |
- |
490 |
-pkg_setup() { |
491 |
- # Darwin Prefix builds do not have llvm installed yet, so rely on |
492 |
- # bootstrap-prefix to set the appropriate path vars to LLVM instead |
493 |
- # of using llvm_pkg_setup. |
494 |
- if [[ ${CHOST} != *-darwin* ]] || has_version dev-lang/llvm; then |
495 |
- llvm_pkg_setup |
496 |
- fi |
497 |
- python-any-r1_pkg_setup |
498 |
-} |
499 |
- |
500 |
-test_compiler() { |
501 |
- $(tc-getCC) ${CFLAGS} ${LDFLAGS} "${@}" -o /dev/null -x c - \ |
502 |
- <<<'int main() { return 0; }' &>/dev/null |
503 |
-} |
504 |
- |
505 |
-src_configure() { |
506 |
- # pre-set since we need to pass it to cmake |
507 |
- BUILD_DIR=${WORKDIR}/${P}_build |
508 |
- |
509 |
- local nolib_flags=( -nodefaultlibs -lc ) |
510 |
- if use clang; then |
511 |
- local -x CC=${CHOST}-clang |
512 |
- local -x CXX=${CHOST}-clang++ |
513 |
- strip-unsupported-flags |
514 |
- # ensure we can use clang before installing compiler-rt |
515 |
- local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}" |
516 |
- elif ! test_compiler; then |
517 |
- if test_compiler "${nolib_flags[@]}"; then |
518 |
- local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}" |
519 |
- ewarn "${CC} seems to lack runtime, trying with ${nolib_flags[*]}" |
520 |
- fi |
521 |
- fi |
522 |
- |
523 |
- local mycmakeargs=( |
524 |
- -DCOMPILER_RT_INSTALL_PATH="${EPREFIX}/usr/lib/clang/${SLOT}" |
525 |
- |
526 |
- -DCOMPILER_RT_INCLUDE_TESTS=$(usex test) |
527 |
- -DCOMPILER_RT_BUILD_LIBFUZZER=OFF |
528 |
- -DCOMPILER_RT_BUILD_MEMPROF=OFF |
529 |
- -DCOMPILER_RT_BUILD_PROFILE=OFF |
530 |
- -DCOMPILER_RT_BUILD_SANITIZERS=OFF |
531 |
- -DCOMPILER_RT_BUILD_XRAY=OFF |
532 |
- |
533 |
- -DPython3_EXECUTABLE="${PYTHON}" |
534 |
- ) |
535 |
- |
536 |
- if use prefix && [[ "${CHOST}" == *-darwin* ]] ; then |
537 |
- mycmakeargs+=( |
538 |
- # setting -isysroot is disabled with compiler-rt-prefix-paths.patch |
539 |
- # this allows adding arm64 support using SDK in EPREFIX |
540 |
- -DDARWIN_macosx_CACHED_SYSROOT="${EPREFIX}/MacOSX.sdk" |
541 |
- # Set version based on the SDK in EPREFIX. |
542 |
- # This disables i386 for SDK >= 10.15 |
543 |
- -DDARWIN_macosx_OVERRIDE_SDK_VERSION="$(realpath ${EPREFIX}/MacOSX.sdk | sed -e 's/.*MacOSX\(.*\)\.sdk/\1/')" |
544 |
- # Use our libtool instead of looking it up with xcrun |
545 |
- -DCMAKE_LIBTOOL="${EPREFIX}/usr/bin/${CHOST}-libtool" |
546 |
- ) |
547 |
- fi |
548 |
- |
549 |
- if use test; then |
550 |
- mycmakeargs+=( |
551 |
- -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" |
552 |
- -DLLVM_LIT_ARGS="$(get_lit_flags)" |
553 |
- |
554 |
- -DCOMPILER_RT_TEST_COMPILER="${EPREFIX}/usr/lib/llvm/${CLANG_SLOT}/bin/clang" |
555 |
- -DCOMPILER_RT_TEST_CXX_COMPILER="${EPREFIX}/usr/lib/llvm/${CLANG_SLOT}/bin/clang++" |
556 |
- ) |
557 |
- fi |
558 |
- |
559 |
- cmake_src_configure |
560 |
-} |
561 |
- |
562 |
-src_test() { |
563 |
- # respect TMPDIR! |
564 |
- local -x LIT_PRESERVES_TMP=1 |
565 |
- |
566 |
- cmake_build check-builtins |
567 |
-} |