commit:     67bf2a16e4c15b634284896a2415836004bde622
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 29 21:23:26 2016 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Sep 29 21:40:05 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67bf2a16

sys-libs/libomp: Add OpenMP Tools Interface support

 sys-libs/libomp/libomp-9999.ebuild | 3 ++-
 sys-libs/libomp/metadata.xml       | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/sys-libs/libomp/libomp-9999.ebuild 
b/sys-libs/libomp/libomp-9999.ebuild
index c64f840..78ab407 100644
--- a/sys-libs/libomp/libomp-9999.ebuild
+++ b/sys-libs/libomp/libomp-9999.ebuild
@@ -18,7 +18,7 @@ EGIT_REPO_URI="http://llvm.org/git/openmp.git
 LICENSE="UoI-NCSA"
 SLOT="0"
 KEYWORDS=""
-IUSE="hwloc test"
+IUSE="hwloc ompt test"
 
 RDEPEND="hwloc? ( sys-apps/hwloc:0= )"
 # tests:
@@ -46,6 +46,7 @@ multilib_src_configure() {
        local mycmakeargs=(
                -DLIBOMP_LIBDIR_SUFFIX="${libdir#lib}"
                -DLIBOMP_USE_HWLOC=$(usex hwloc)
+               -DLIBOMP_OMPT_SUPPORT=$(usex ompt)
                # do not install libgomp.so & libiomp5.so aliases
                -DLIBOMP_INSTALL_ALIASES=OFF
                # disable unnecessary hack copying stuff back to srcdir

diff --git a/sys-libs/libomp/metadata.xml b/sys-libs/libomp/metadata.xml
index a6f393e..ca91e84 100644
--- a/sys-libs/libomp/metadata.xml
+++ b/sys-libs/libomp/metadata.xml
@@ -10,6 +10,7 @@
        </maintainer>
        <use>
                <flag name='hwloc'>Enable CPU affinity support via hwloc</flag>
+               <flag name='ompt'>Enable OpenMP Tools Interface support</flag>
        </use>
        <longdescription>The OpenMP subproject of LLVM is intended to contain 
all of the components required to build an executing OpenMP program that are 
outside the compiler itself.</longdescription>
 </pkgmetadata>

Reply via email to