1 |
commit: 3a9d5d6444a89b5da5889e12454ce98d94a79140 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 16 14:11:43 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 16 14:16:23 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a9d5d64 |
7 |
|
8 |
sys-libs/compiler-rt-sanitizers: Use strip-unsupported-flags |
9 |
|
10 |
Use strip-unsupported-flags to strip flags not supported by clang |
11 |
instead of a hardcoded known-bad flag list. |
12 |
|
13 |
.../compiler-rt-sanitizers/compiler-rt-sanitizers-4.0.0_rc2.ebuild | 4 +++- |
14 |
sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild | 4 +++- |
15 |
2 files changed, 6 insertions(+), 2 deletions(-) |
16 |
|
17 |
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 |
18 |
index 679d166d73..2c004b0a3a 100644 |
19 |
--- a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-4.0.0_rc2.ebuild |
20 |
+++ b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-4.0.0_rc2.ebuild |
21 |
@@ -74,7 +74,9 @@ src_configure() { |
22 |
|
23 |
# same flags are passed for build & tests, so we need to strip |
24 |
# them down to a subset supported by clang |
25 |
- filter-flags -msahf -frecord-gcc-switches |
26 |
+ CC=${EPREFIX}/usr/lib/llvm/${LLVM_SLOT}/bin/clang \ |
27 |
+ CXX=${EPREFIX}/usr/lib/llvm/${LLVM_SLOT}/bin/clang++ \ |
28 |
+ strip-unsupported-flags |
29 |
fi |
30 |
|
31 |
cmake-utils_src_configure |
32 |
|
33 |
diff --git a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild |
34 |
index 6e41986151..4d66c86e90 100644 |
35 |
--- a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild |
36 |
+++ b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild |
37 |
@@ -80,7 +80,9 @@ src_configure() { |
38 |
|
39 |
# same flags are passed for build & tests, so we need to strip |
40 |
# them down to a subset supported by clang |
41 |
- filter-flags -msahf -frecord-gcc-switches |
42 |
+ CC=${EPREFIX}/usr/lib/llvm/${LLVM_SLOT}/bin/clang \ |
43 |
+ CXX=${EPREFIX}/usr/lib/llvm/${LLVM_SLOT}/bin/clang++ \ |
44 |
+ strip-unsupported-flags |
45 |
fi |
46 |
|
47 |
cmake-utils_src_configure |