diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-01-30 22:55:22 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-02-15 13:47:24 +0100 |
commit | 4e3c559c6c04727fb2dbcbbdda0fea196248590a (patch) | |
tree | 85b44e031431e41f0d60dd30fa10967b4b19fc22 /dev-util/lldb/lldb-9999.ebuild | |
parent | sys-devel/lld: Support building against slotted LLVM (diff) | |
download | gentoo-4e3c559c6c04727fb2dbcbbdda0fea196248590a.tar.gz gentoo-4e3c559c6c04727fb2dbcbbdda0fea196248590a.tar.bz2 gentoo-4e3c559c6c04727fb2dbcbbdda0fea196248590a.zip |
dev-util/lldb: Support building against slotted LLVM
Diffstat (limited to 'dev-util/lldb/lldb-9999.ebuild')
-rw-r--r-- | dev-util/lldb/lldb-9999.ebuild | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/dev-util/lldb/lldb-9999.ebuild b/dev-util/lldb/lldb-9999.ebuild index 6d1a954e59fd..3a0deeaf9217 100644 --- a/dev-util/lldb/lldb-9999.ebuild +++ b/dev-util/lldb/lldb-9999.ebuild @@ -9,7 +9,7 @@ EAPI=6 CMAKE_MIN_VERSION=3.7.0-r1 PYTHON_COMPAT=( python2_7 ) -inherit cmake-utils git-r3 python-single-r1 toolchain-funcs +inherit cmake-utils git-r3 llvm python-single-r1 toolchain-funcs DESCRIPTION="The LLVM debugger" HOMEPAGE="http://llvm.org/" @@ -42,6 +42,11 @@ REQUIRED_USE=${PYTHON_REQUIRED_USE} # least intrusive of all CMAKE_BUILD_TYPE=RelWithDebInfo +pkg_setup() { + llvm_pkg_setup + python-single-r1_pkg_setup +} + src_unpack() { if use test; then # needed for patched gtest @@ -58,7 +63,6 @@ src_unpack() { } src_configure() { - local libdir=$(get_libdir) local mycmakeargs=( -DLLDB_DISABLE_CURSES=$(usex !ncurses) -DLLDB_DISABLE_LIBEDIT=$(usex !libedit) @@ -67,10 +71,10 @@ src_configure() { -DLLVM_BUILD_TESTS=$(usex test) # compilers for lit tests - -DLLDB_TEST_C_COMPILER="${EPREFIX}/usr/bin/clang" - -DLLDB_TEST_CXX_COMPILER="${EPREFIX}/usr/bin/clang++" + -DLLDB_TEST_C_COMPILER="$(type -P clang)" + -DLLDB_TEST_CXX_COMPILER="$(type -P clang++)" # compiler for ole' python tests - -DLLDB_TEST_COMPILER="${EPREFIX}/usr/bin/clang" + -DLLDB_TEST_COMPILER="$(type -P clang)" # TODO: fix upstream to detect this properly -DHAVE_LIBDL=ON |