sys-libs/libomp: Add OpenMP Tools Interface support
authorMichał Górny <mgorny@gentoo.org>
Thu, 29 Sep 2016 21:23:26 +0000 (23:23 +0200)
committerMichał Górny <mgorny@gentoo.org>
Thu, 29 Sep 2016 21:40:05 +0000 (23:40 +0200)
sys-libs/libomp/libomp-9999.ebuild
sys-libs/libomp/metadata.xml

index c64f8401c8e501a0cc8f63f9b5dd2af3df1d9e65..78ab40789524bb323da5e853604574e106fbac68 100644 (file)
@@ -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
index a6f393e8425a1280940ae89cbe2b2ce6fc6ba25b..ca91e84fce57d86375f2faec664909473e996463 100644 (file)
@@ -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>