summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2016-09-29 23:23:26 +0200
committerMichał Górny <mgorny@gentoo.org>2016-09-29 23:40:05 +0200
commit67bf2a16e4c15b634284896a2415836004bde622 (patch)
tree4eef625b95f2bc18bb5d9efc829ba41600e78d93 /sys-libs/libomp
parentsys-libs/libomp: Add hwloc support (diff)
downloadgentoo-67bf2a16e4c15b634284896a2415836004bde622.tar.gz
gentoo-67bf2a16e4c15b634284896a2415836004bde622.tar.bz2
gentoo-67bf2a16e4c15b634284896a2415836004bde622.zip
sys-libs/libomp: Add OpenMP Tools Interface support
Diffstat (limited to 'sys-libs/libomp')
-rw-r--r--sys-libs/libomp/libomp-9999.ebuild3
-rw-r--r--sys-libs/libomp/metadata.xml1
2 files changed, 3 insertions, 1 deletions
diff --git a/sys-libs/libomp/libomp-9999.ebuild b/sys-libs/libomp/libomp-9999.ebuild
index c64f8401c8e5..78ab40789524 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 a6f393e8425a..ca91e84fce57 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>