* [gentoo-dev] [PATCH 1/1] kernel-2.eclass: Don't drop CPU OPT patch when CC=clang
@ 2022-12-28 19:05 Mike Pagano
2023-01-01 7:30 ` alicef_gentoo
0 siblings, 1 reply; 2+ messages in thread
From: Mike Pagano @ 2022-12-28 19:05 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1.1.1: Type: text/plain, Size: 1218 bytes --]
Clang is supported by the CPU optimization patch. (USE=experimental)
Check for CC=clang and do not drop this patch.
Bug: https://bugs.gentoo.org/888727
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
---
eclass/kernel-2.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index e13ed1a4f..873d4a204 100644
--- a/eclass/kernel-2.eclass
+++ b/eclass/kernel-2.eclass
@@ -1144,7 +1144,7 @@ unipatch() {
UNIPATCH_DROP+=" 5011_enable-cpu-optimizations-for-gcc8.patch"
UNIPATCH_DROP+=" 5012_enable-cpu-optimizations-for-gcc91.patch"
UNIPATCH_DROP+=" 5013_enable-cpu-optimizations-for-gcc10.patch"
- if [[ ${GCC_MAJOR_VER} -lt 9 ]]; then
+ if [[ ${GCC_MAJOR_VER} -lt 9 ]] && ! tc-is-clang; then
UNIPATCH_DROP+=" 5010_enable-cpu-optimizations-universal.patch"
fi
# this legacy section should be targeted for removal
--
2.38.2
--
Mike Pagano
Gentoo Developer - Kernel Project
E-Mail : mpagano@gentoo.org
GnuPG FP : 52CC A0B0 F631 0B17 0142 F83F 92A6 DBEC 81F2 B137
Public Key : http://pgp.mit.edu/pks/lookup?search=0x92A6DBEC81F2B137&op=index
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 16505 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [gentoo-dev] [PATCH 1/1] kernel-2.eclass: Don't drop CPU OPT patch when CC=clang
2022-12-28 19:05 [gentoo-dev] [PATCH 1/1] kernel-2.eclass: Don't drop CPU OPT patch when CC=clang Mike Pagano
@ 2023-01-01 7:30 ` alicef_gentoo
0 siblings, 0 replies; 2+ messages in thread
From: alicef_gentoo @ 2023-01-01 7:30 UTC (permalink / raw
To: Mike Pagano; +Cc: gentoo-dev
On Wed, Dec 28, 2022 at 02:05:29PM -0500, Mike Pagano wrote:
> Clang is supported by the CPU optimization patch. (USE=experimental)
> Check for CC=clang and do not drop this patch.
>
> Bug: https://bugs.gentoo.org/888727
>
> Signed-off-by: Mike Pagano <mpagano@gentoo.org>
> ---
> eclass/kernel-2.eclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
> index e13ed1a4f..873d4a204 100644
> --- a/eclass/kernel-2.eclass
> +++ b/eclass/kernel-2.eclass
> @@ -1144,7 +1144,7 @@ unipatch() {
> UNIPATCH_DROP+=" 5011_enable-cpu-optimizations-for-gcc8.patch"
> UNIPATCH_DROP+=" 5012_enable-cpu-optimizations-for-gcc91.patch"
> UNIPATCH_DROP+=" 5013_enable-cpu-optimizations-for-gcc10.patch"
> - if [[ ${GCC_MAJOR_VER} -lt 9 ]]; then
> + if [[ ${GCC_MAJOR_VER} -lt 9 ]] && ! tc-is-clang; then
> UNIPATCH_DROP+=" 5010_enable-cpu-optimizations-universal.patch"
> fi
> # this legacy section should be targeted for removal
> --
> 2.38.2
lgtm!
Thanks,
Alicef
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-01-01 7:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-28 19:05 [gentoo-dev] [PATCH 1/1] kernel-2.eclass: Don't drop CPU OPT patch when CC=clang Mike Pagano
2023-01-01 7:30 ` alicef_gentoo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox