From: Michał Górny Date: Thu, 16 Feb 2017 14:11:43 +0000 (+0100) Subject: sys-libs/compiler-rt-sanitizers: Use strip-unsupported-flags X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3a9d5d6444a89b5da5889e12454ce98d94a79140;p=gentoo.git sys-libs/compiler-rt-sanitizers: Use strip-unsupported-flags Use strip-unsupported-flags to strip flags not supported by clang instead of a hardcoded known-bad flag list. --- diff --git a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-4.0.0_rc2.ebuild b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-4.0.0_rc2.ebuild index 679d166d733f..2c004b0a3a2a 100644 --- a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-4.0.0_rc2.ebuild +++ b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-4.0.0_rc2.ebuild @@ -74,7 +74,9 @@ src_configure() { # same flags are passed for build & tests, so we need to strip # them down to a subset supported by clang - filter-flags -msahf -frecord-gcc-switches + CC=${EPREFIX}/usr/lib/llvm/${LLVM_SLOT}/bin/clang \ + CXX=${EPREFIX}/usr/lib/llvm/${LLVM_SLOT}/bin/clang++ \ + strip-unsupported-flags fi cmake-utils_src_configure diff --git a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild index 6e4198615177..4d66c86e90b6 100644 --- a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild +++ b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild @@ -80,7 +80,9 @@ src_configure() { # same flags are passed for build & tests, so we need to strip # them down to a subset supported by clang - filter-flags -msahf -frecord-gcc-switches + CC=${EPREFIX}/usr/lib/llvm/${LLVM_SLOT}/bin/clang \ + CXX=${EPREFIX}/usr/lib/llvm/${LLVM_SLOT}/bin/clang++ \ + strip-unsupported-flags fi cmake-utils_src_configure