From afec44aa8765ddf8bf66aa82699be0f8b19bd05f Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Thu, 20 Sep 2018 20:21:18 +0200 Subject: sys-devel/llvm: Add flag to control libfpm dep for exegesis MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: https://bugs.gentoo.org/666617 Signed-off-by: Michał Górny --- sys-devel/llvm/llvm-7.0.0.ebuild | 4 +++- sys-devel/llvm/llvm-7.0.9999.ebuild | 4 +++- sys-devel/llvm/llvm-9999.ebuild | 4 +++- sys-devel/llvm/metadata.xml | 2 ++ 4 files changed, 11 insertions(+), 3 deletions(-) (limited to 'sys-devel/llvm') diff --git a/sys-devel/llvm/llvm-7.0.0.ebuild b/sys-devel/llvm/llvm-7.0.0.ebuild index 9ce79663c29f..ef47128aa166 100644 --- a/sys-devel/llvm/llvm-7.0.0.ebuild +++ b/sys-devel/llvm/llvm-7.0.0.ebuild @@ -33,12 +33,13 @@ LICENSE="UoI-NCSA rc BSD public-domain llvm_targets_ARM? ( LLVM-Grant )" SLOT="$(ver_cut 1)" KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-fbsd ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos" -IUSE="debug doc gold libedit +libffi ncurses test xar xml +IUSE="debug doc exegesis gold libedit +libffi ncurses test xar xml kernel_Darwin ${ALL_LLVM_TARGETS[*]}" RESTRICT="!test? ( test )" RDEPEND=" sys-libs/zlib:0= + exegesis? ( dev-libs/libpfm:= ) gold? ( >=sys-devel/binutils-2.22:*[cxx] ) libedit? ( dev-libs/libedit:0=[${MULTILIB_USEDEP}] ) libffi? ( >=virtual/libffi-3.0.13-r1:0=[${MULTILIB_USEDEP}] ) @@ -111,6 +112,7 @@ multilib_src_configure() { -DLLVM_ENABLE_TERMINFO=$(usex ncurses) -DLLVM_ENABLE_LIBXML2=$(usex xml) -DLLVM_ENABLE_ASSERTIONS=$(usex debug) + -DLLVM_ENABLE_LIBPFM=$(usex exegesis) -DLLVM_ENABLE_EH=ON -DLLVM_ENABLE_RTTI=ON diff --git a/sys-devel/llvm/llvm-7.0.9999.ebuild b/sys-devel/llvm/llvm-7.0.9999.ebuild index 2777a3c503c1..b97e3a6b47bd 100644 --- a/sys-devel/llvm/llvm-7.0.9999.ebuild +++ b/sys-devel/llvm/llvm-7.0.9999.ebuild @@ -35,12 +35,13 @@ LICENSE="UoI-NCSA rc BSD public-domain llvm_targets_ARM? ( LLVM-Grant )" SLOT="$(ver_cut 1)" KEYWORDS="" -IUSE="debug doc gold libedit +libffi ncurses test xar xml +IUSE="debug doc exegesis gold libedit +libffi ncurses test xar xml kernel_Darwin ${ALL_LLVM_TARGETS[*]}" RESTRICT="!test? ( test )" RDEPEND=" sys-libs/zlib:0= + exegesis? ( dev-libs/libpfm:= ) gold? ( >=sys-devel/binutils-2.22:*[cxx] ) libedit? ( dev-libs/libedit:0=[${MULTILIB_USEDEP}] ) libffi? ( >=virtual/libffi-3.0.13-r1:0=[${MULTILIB_USEDEP}] ) @@ -111,6 +112,7 @@ multilib_src_configure() { -DLLVM_ENABLE_TERMINFO=$(usex ncurses) -DLLVM_ENABLE_LIBXML2=$(usex xml) -DLLVM_ENABLE_ASSERTIONS=$(usex debug) + -DLLVM_ENABLE_LIBPFM=$(usex exegesis) -DLLVM_ENABLE_EH=ON -DLLVM_ENABLE_RTTI=ON diff --git a/sys-devel/llvm/llvm-9999.ebuild b/sys-devel/llvm/llvm-9999.ebuild index 196984744a54..014336a4f3eb 100644 --- a/sys-devel/llvm/llvm-9999.ebuild +++ b/sys-devel/llvm/llvm-9999.ebuild @@ -37,12 +37,13 @@ LICENSE="UoI-NCSA rc BSD public-domain llvm_targets_ARM? ( LLVM-Grant )" SLOT="8" KEYWORDS="" -IUSE="debug doc gold libedit +libffi ncurses test xar xml +IUSE="debug doc exegesis gold libedit +libffi ncurses test xar xml kernel_Darwin ${ALL_LLVM_TARGETS[*]}" RESTRICT="!test? ( test )" RDEPEND=" sys-libs/zlib:0= + exegesis? ( dev-libs/libpfm:= ) gold? ( >=sys-devel/binutils-2.22:*[cxx] ) libedit? ( dev-libs/libedit:0=[${MULTILIB_USEDEP}] ) libffi? ( >=virtual/libffi-3.0.13-r1:0=[${MULTILIB_USEDEP}] ) @@ -139,6 +140,7 @@ multilib_src_configure() { -DLLVM_ENABLE_TERMINFO=$(usex ncurses) -DLLVM_ENABLE_LIBXML2=$(usex xml) -DLLVM_ENABLE_ASSERTIONS=$(usex debug) + -DLLVM_ENABLE_LIBPFM=$(usex exegesis) -DLLVM_ENABLE_EH=ON -DLLVM_ENABLE_RTTI=ON diff --git a/sys-devel/llvm/metadata.xml b/sys-devel/llvm/metadata.xml index e35461842711..4538466dde0e 100644 --- a/sys-devel/llvm/metadata.xml +++ b/sys-devel/llvm/metadata.xml @@ -14,6 +14,8 @@ Use compiler-rt instead of libgcc as the default rtlib for clang Use libc++ instead of libstdc++ as the default stdlib for clang Build and install the HTML documentation and regenerate the man pages + Enable performance counter support for llvm-exegesis tool + that can be used to measure host machine instruction characteristics Build the gold linker plugin Build the lldb debugger Build all host targets (default: host only) -- cgit v1.2.3-18-g5258