sys-devel/clang: Stop passing LLVM_CONFIG to 9.0+
authorMichał Górny <mgorny@gentoo.org>
Fri, 13 Sep 2019 08:40:18 +0000 (10:40 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 13 Sep 2019 09:39:30 +0000 (11:39 +0200)
Stop passing LLVM_CONFIG to silence CMake warning.  Nowadays correct
PATH should be sufficient for CMake to find the correct packages.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
sys-devel/clang/clang-10.0.0.9999.ebuild
sys-devel/clang/clang-9.0.0.9999.ebuild

index 801d601ba134327b787e1a17f0aae3940fb4f756..423e55170bfdc7e06118e9c796102a49af27ac9b 100644 (file)
@@ -109,8 +109,6 @@ multilib_src_configure() {
        local clang_version=$(ver_cut 1-3 "${llvm_version}")
 
        local mycmakeargs=(
-               # ensure that the correct llvm-config is used
-               -DLLVM_CONFIG="$(type -P "${CHOST}-llvm-config")"
                -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/lib/llvm/${SLOT}"
                -DCMAKE_INSTALL_MANDIR="${EPREFIX}/usr/lib/llvm/${SLOT}/share/man"
                # relative to bindir
index 60b45818fe4b6095e6b346f7857459416120a5d3..4fac61d4c534c574c78506de0e2310dbd4880ff0 100644 (file)
@@ -114,8 +114,6 @@ multilib_src_configure() {
        local clang_version=$(ver_cut 1-3 "${llvm_version}")
 
        local mycmakeargs=(
-               # ensure that the correct llvm-config is used
-               -DLLVM_CONFIG="$(type -P "${CHOST}-llvm-config")"
                -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/lib/llvm/${SLOT}"
                -DCMAKE_INSTALL_MANDIR="${EPREFIX}/usr/lib/llvm/${SLOT}/share/man"
                # relative to bindir