1 |
On Wed, Dec 28, 2022 at 02:05:29PM -0500, Mike Pagano wrote: |
2 |
> Clang is supported by the CPU optimization patch. (USE=experimental) |
3 |
> Check for CC=clang and do not drop this patch. |
4 |
> |
5 |
> Bug: https://bugs.gentoo.org/888727 |
6 |
> |
7 |
> Signed-off-by: Mike Pagano <mpagano@g.o> |
8 |
> --- |
9 |
> eclass/kernel-2.eclass | 2 +- |
10 |
> 1 file changed, 1 insertion(+), 1 deletion(-) |
11 |
> |
12 |
> diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass |
13 |
> index e13ed1a4f..873d4a204 100644 |
14 |
> --- a/eclass/kernel-2.eclass |
15 |
> +++ b/eclass/kernel-2.eclass |
16 |
> @@ -1144,7 +1144,7 @@ unipatch() { |
17 |
> UNIPATCH_DROP+=" 5011_enable-cpu-optimizations-for-gcc8.patch" |
18 |
> UNIPATCH_DROP+=" 5012_enable-cpu-optimizations-for-gcc91.patch" |
19 |
> UNIPATCH_DROP+=" 5013_enable-cpu-optimizations-for-gcc10.patch" |
20 |
> - if [[ ${GCC_MAJOR_VER} -lt 9 ]]; then |
21 |
> + if [[ ${GCC_MAJOR_VER} -lt 9 ]] && ! tc-is-clang; then |
22 |
> UNIPATCH_DROP+=" 5010_enable-cpu-optimizations-universal.patch" |
23 |
> fi |
24 |
> # this legacy section should be targeted for removal |
25 |
> -- |
26 |
> 2.38.2 |
27 |
|
28 |
|
29 |
lgtm! |
30 |
|
31 |
|
32 |
|
33 |
Thanks, |
34 |
Alicef |