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