Skip to content

Commit

Permalink
dev-libs/libclc: fix llvm-config path.
Browse files Browse the repository at this point in the history
clang path can be ccache-based, but llvm-config is not hooked by ccache,
so find it better ourselves.

Closes: https://bugs.gentoo.org/show_bug.cgi?id=624034
Package-Manager: portage-2.3.6
Signed-off-by: Robin H. Johnson <[email protected]>
  • Loading branch information
robbat2 committed Aug 12, 2017
1 parent f6eb2d9 commit 99a0c54
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions dev-libs/libclc/libclc-0.2.0_pre20170118.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,9 @@ DEPEND="${RDEPEND}
${PYTHON_DEPS}"

src_configure() {
# we need to find llvm with matching clang version, so look for
# clang first, and then use llvm-config from the same location
local clang_path=$(type -P clang) || die

./configure.py \
--with-cxx-compiler="$(tc-getCXX)" \
--with-llvm-config="${clang_path%/*}/llvm-config" \
--with-llvm-config="$(tc-getPROG LLVM_CONFIG llvm-config)" \
--prefix="${EPREFIX}/usr" || die
}

Expand Down

0 comments on commit 99a0c54

Please sign in to comment.