1 |
commit: 6b4c6da6ce3123ba26ff0c42d8ae0fdacebfda9b |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 5 16:32:24 2015 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 5 16:34:43 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b4c6da6 |
7 |
|
8 |
sys-devel/llvm: Set libomp as default OpenMP provider in -9999, #562990 |
9 |
|
10 |
Use libomp as default OpenMP provider rather than libgomp because the |
11 |
support for the latter is unable to find omp.h without explicit -I, and |
12 |
provides syntax checking only. |
13 |
|
14 |
Bug: https://bugs.gentoo.org/show_bug.cgi?id=562990 |
15 |
|
16 |
sys-devel/llvm/llvm-9999.ebuild | 8 +++++--- |
17 |
1 file changed, 5 insertions(+), 3 deletions(-) |
18 |
|
19 |
diff --git a/sys-devel/llvm/llvm-9999.ebuild b/sys-devel/llvm/llvm-9999.ebuild |
20 |
index e65e573..2f8afe7 100644 |
21 |
--- a/sys-devel/llvm/llvm-9999.ebuild |
22 |
+++ b/sys-devel/llvm/llvm-9999.ebuild |
23 |
@@ -254,6 +254,9 @@ multilib_src_configure() { |
24 |
if use clang; then |
25 |
mycmakeargs+=( |
26 |
-DCMAKE_DISABLE_FIND_PACKAGE_LibXml2=$(usex !xml) |
27 |
+ # libgomp support fails to find headers without explicit -I |
28 |
+ # furthermore, it provides only syntax checking |
29 |
+ -DCLANG_DEFAULT_OPENMP_RUNTIME=libomp |
30 |
) |
31 |
fi |
32 |
|
33 |
@@ -481,8 +484,7 @@ multilib_src_install_all() { |
34 |
} |
35 |
|
36 |
pkg_postinst() { |
37 |
- if use clang; then |
38 |
- elog "To enable OpenMP support in clang, install sys-libs/libomp" |
39 |
- elog "and use the '-fopenmp=libomp' command line option" |
40 |
+ if use clang && ! has_version 'sys-libs/libomp'; then |
41 |
+ elog "To enable OpenMP support in clang, install sys-libs/libomp." |
42 |
fi |
43 |
} |