diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-29 14:55:22 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-29 14:55:22 +0000 |
commit | 4c51ef39a9b443061a7071e002d7daa2a4d16141 (patch) | |
tree | 048b88a0effe40564f62448a2ff2779f637e563f /sys-devel/lld/lld-16.0.0_pre20230127.ebuild | |
parent | cd1445321d1a6609cc7215588a79b2232c8a9bd3 (diff) |
gentoo auto-resync : 29:01:2023 - 14:55:22
Diffstat (limited to 'sys-devel/lld/lld-16.0.0_pre20230127.ebuild')
-rw-r--r-- | sys-devel/lld/lld-16.0.0_pre20230127.ebuild | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sys-devel/lld/lld-16.0.0_pre20230127.ebuild b/sys-devel/lld/lld-16.0.0_pre20230127.ebuild index a540e3ab0cb3..c23949899ce7 100644 --- a/sys-devel/lld/lld-16.0.0_pre20230127.ebuild +++ b/sys-devel/lld/lld-16.0.0_pre20230127.ebuild @@ -4,7 +4,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{9..11} ) -inherit cmake flag-o-matic llvm llvm.org python-any-r1 +inherit cmake flag-o-matic llvm llvm.org python-any-r1 toolchain-funcs DESCRIPTION="The LLVM linker (link editor)" HOMEPAGE="https://llvm.org/" @@ -69,11 +69,21 @@ src_configure() { -DBUILD_SHARED_LIBS=ON -DLLVM_INCLUDE_TESTS=$(usex test) ) + use test && mycmakeargs+=( -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" -DLLVM_LIT_ARGS="$(get_lit_flags)" -DPython3_EXECUTABLE="${PYTHON}" ) + + if tc-is-cross-compiler; then + has_version -b sys-devel/llvm:${LLVM_MAJOR} || + die "sys-devel/llvm:${LLVM_MAJOR} is required on the build host." + mycmakeargs+=( + -DLLVM_TABLEGEN_EXE="${BROOT}/usr/lib/llvm/${LLVM_MAJOR}/bin/llvm-tblgen" + ) + fi + cmake_src_configure } |