Diff lld-14.0.6-r1 with a lld-15.0.7
/usr/portage/sys-devel/lld/lld-15.0.7.ebuild 2023-10-09 14:52:35.488368501 +0300 | ||
---|---|---|
3 | 3 | |
4 | 4 |
EAPI=8 |
5 | 5 | |
6 |
PYTHON_COMPAT=( python3_{9..10} ) |
|
7 |
inherit cmake flag-o-matic llvm llvm.org python-any-r1 |
|
6 |
PYTHON_COMPAT=( python3_{9..11} ) |
|
7 |
inherit cmake flag-o-matic llvm llvm.org python-any-r1 toolchain-funcs |
|
8 | 8 | |
9 | 9 |
DESCRIPTION="The LLVM linker (link editor)" |
10 | 10 |
HOMEPAGE="https://llvm.org/" |
... | ... | |
17 | 17 | |
18 | 18 |
DEPEND=" |
19 | 19 |
~sys-devel/llvm-${PV} |
20 |
sys-libs/zlib:= |
|
20 | 21 |
" |
21 | 22 |
RDEPEND=" |
22 | 23 |
${DEPEND} |
23 | 24 |
!sys-devel/lld:0 |
24 | 25 |
" |
25 | 26 |
BDEPEND=" |
27 |
sys-devel/llvm:${LLVM_MAJOR} |
|
26 | 28 |
test? ( |
27 | 29 |
>=dev-util/cmake-3.16 |
28 | 30 |
$(python_gen_any_dep ">=dev-python/lit-${PV}[\${PYTHON_USEDEP}]") |
29 | 31 |
) |
30 | 32 |
" |
33 |
PDEPEND=" |
|
34 |
>=sys-devel/lld-toolchain-symlinks-15-r2:${LLVM_MAJOR} |
|
35 |
" |
|
31 | 36 | |
32 | 37 |
LLVM_COMPONENTS=( lld cmake libunwind/include/mach-o ) |
33 | 38 |
LLVM_TEST_COMPONENTS=( llvm/utils/{lit,unittest} ) |
... | ... | |
65 | 70 |
-DLLVM_INCLUDE_TESTS=$(usex test) |
66 | 71 |
-DLLVM_MAIN_SRC_DIR="${WORKDIR}/llvm" |
67 | 72 |
) |
73 | ||
68 | 74 |
use test && mycmakeargs+=( |
69 | 75 |
-DLLVM_BUILD_TESTS=ON |
70 | 76 |
-DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" |
71 | 77 |
-DLLVM_LIT_ARGS="$(get_lit_flags)" |
72 | 78 |
-DPython3_EXECUTABLE="${PYTHON}" |
73 | 79 |
) |
80 | ||
81 |
tc-is-cross-compiler && mycmakeargs+=( |
|
82 |
-DLLVM_TABLEGEN_EXE="${BROOT}/usr/lib/llvm/${LLVM_MAJOR}/bin/llvm-tblgen" |
|
83 |
) |
|
84 | ||
74 | 85 |
cmake_src_configure |
75 | 86 |
} |
76 | 87 |