1 |
commit: 81ef4172f6f37839efbedebc4de8d52b419b72a3 |
2 |
Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 29 17:32:13 2022 +0000 |
4 |
Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 29 17:32:13 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81ef4172 |
7 |
|
8 |
kernel-2.eclass: Don't drop CPU OPT patch when CC=clang |
9 |
|
10 |
Clang is supported by the CPU optimization patch. (USE=experimental) |
11 |
Check for CC=clang and do not drop this patch. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/888727 |
14 |
|
15 |
Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org> |
16 |
|
17 |
eclass/kernel-2.eclass | 2 +- |
18 |
1 file changed, 1 insertion(+), 1 deletion(-) |
19 |
|
20 |
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass |
21 |
index e13ed1a4f5ba..873d4a204669 100644 |
22 |
--- a/eclass/kernel-2.eclass |
23 |
+++ b/eclass/kernel-2.eclass |
24 |
@@ -1144,7 +1144,7 @@ unipatch() { |
25 |
UNIPATCH_DROP+=" 5011_enable-cpu-optimizations-for-gcc8.patch" |
26 |
UNIPATCH_DROP+=" 5012_enable-cpu-optimizations-for-gcc91.patch" |
27 |
UNIPATCH_DROP+=" 5013_enable-cpu-optimizations-for-gcc10.patch" |
28 |
- if [[ ${GCC_MAJOR_VER} -lt 9 ]]; then |
29 |
+ if [[ ${GCC_MAJOR_VER} -lt 9 ]] && ! tc-is-clang; then |
30 |
UNIPATCH_DROP+=" 5010_enable-cpu-optimizations-universal.patch" |
31 |
fi |
32 |
# this legacy section should be targeted for removal |