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