From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 9F3D41384B4 for ; Sat, 5 Dec 2015 16:35:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8A0D721C002; Sat, 5 Dec 2015 16:34:59 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2CF2421C002 for ; Sat, 5 Dec 2015 16:34:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E738433FDBF for ; Sat, 5 Dec 2015 16:34:57 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DD433A96 for ; Sat, 5 Dec 2015 16:34:54 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1449333283.6b4c6da6ce3123ba26ff0c42d8ae0fdacebfda9b.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/llvm/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/llvm/llvm-9999.ebuild X-VCS-Directories: sys-devel/llvm/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 6b4c6da6ce3123ba26ff0c42d8ae0fdacebfda9b X-VCS-Branch: master Date: Sat, 5 Dec 2015 16:34:54 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: a45e8a76-1707-487c-bb7a-49ec9a136b3e X-Archives-Hash: edf0f9f8619df48443f058e141ee7587 commit: 6b4c6da6ce3123ba26ff0c42d8ae0fdacebfda9b Author: Michał Górny gentoo org> AuthorDate: Sat Dec 5 16:32:24 2015 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Dec 5 16:34:43 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b4c6da6 sys-devel/llvm: Set libomp as default OpenMP provider in -9999, #562990 Use libomp as default OpenMP provider rather than libgomp because the support for the latter is unable to find omp.h without explicit -I, and provides syntax checking only. Bug: https://bugs.gentoo.org/show_bug.cgi?id=562990 sys-devel/llvm/llvm-9999.ebuild | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys-devel/llvm/llvm-9999.ebuild b/sys-devel/llvm/llvm-9999.ebuild index e65e573..2f8afe7 100644 --- a/sys-devel/llvm/llvm-9999.ebuild +++ b/sys-devel/llvm/llvm-9999.ebuild @@ -254,6 +254,9 @@ multilib_src_configure() { if use clang; then mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_LibXml2=$(usex !xml) + # libgomp support fails to find headers without explicit -I + # furthermore, it provides only syntax checking + -DCLANG_DEFAULT_OPENMP_RUNTIME=libomp ) fi @@ -481,8 +484,7 @@ multilib_src_install_all() { } pkg_postinst() { - if use clang; then - elog "To enable OpenMP support in clang, install sys-libs/libomp" - elog "and use the '-fopenmp=libomp' command line option" + if use clang && ! has_version 'sys-libs/libomp'; then + elog "To enable OpenMP support in clang, install sys-libs/libomp." fi }