diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-07-09 10:23:27 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-07-09 23:33:56 +0200 |
commit | 7ef3504c4fb36c875c9a58bdde62b5f8443e3bf7 (patch) | |
tree | f0bb40183e2dc97bd68b781052d7906049951c8b /sys-libs/compiler-rt | |
parent | sys-libs/compiler-rt: Simplify -- use common nolib flag var (diff) | |
download | gentoo-7ef3504c4fb36c875c9a58bdde62b5f8443e3bf7.tar.gz gentoo-7ef3504c4fb36c875c9a58bdde62b5f8443e3bf7.tar.bz2 gentoo-7ef3504c4fb36c875c9a58bdde62b5f8443e3bf7.zip |
sys-libs/compiler-rt: Warn when not using clang
Diffstat (limited to 'sys-libs/compiler-rt')
-rw-r--r-- | sys-libs/compiler-rt/compiler-rt-4.0.1.ebuild | 7 | ||||
-rw-r--r-- | sys-libs/compiler-rt/compiler-rt-9999.ebuild | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/sys-libs/compiler-rt/compiler-rt-4.0.1.ebuild b/sys-libs/compiler-rt/compiler-rt-4.0.1.ebuild index 98d9f66212bc..bc1e65eb314f 100644 --- a/sys-libs/compiler-rt/compiler-rt-4.0.1.ebuild +++ b/sys-libs/compiler-rt/compiler-rt-4.0.1.ebuild @@ -34,6 +34,13 @@ S=${WORKDIR}/${P/_/}.src # least intrusive of all CMAKE_BUILD_TYPE=RelWithDebInfo +pkg_pretend() { + if ! use clang && ! tc-is-clang; then + ewarn "Building using a compiler other than clang may result in broken atomics" + ewarn "library. Enable USE=clang unless you have a very good reason not to." + fi +} + pkg_setup() { llvm_pkg_setup python-any-r1_pkg_setup diff --git a/sys-libs/compiler-rt/compiler-rt-9999.ebuild b/sys-libs/compiler-rt/compiler-rt-9999.ebuild index ffd1e9eddb3f..03c34d45531a 100644 --- a/sys-libs/compiler-rt/compiler-rt-9999.ebuild +++ b/sys-libs/compiler-rt/compiler-rt-9999.ebuild @@ -35,6 +35,13 @@ DEPEND=" # least intrusive of all CMAKE_BUILD_TYPE=RelWithDebInfo +pkg_pretend() { + if ! use clang && ! tc-is-clang; then + ewarn "Building using a compiler other than clang may result in broken atomics" + ewarn "library. Enable USE=clang unless you have a very good reason not to." + fi +} + pkg_setup() { llvm_pkg_setup python-any-r1_pkg_setup |