diff options
author | Mike Pagano <mpagano@gentoo.org> | 2022-12-29 12:32:13 -0500 |
---|---|---|
committer | Mike Pagano <mpagano@gentoo.org> | 2022-12-29 12:32:13 -0500 |
commit | 81ef4172f6f37839efbedebc4de8d52b419b72a3 (patch) | |
tree | 8dbb51eb89a1a39182032a165750d31a844598ba /eclass | |
parent | app-admin/rasdaemon: drop 0.6.7 (diff) | |
download | gentoo-81ef4172f6f37839efbedebc4de8d52b419b72a3.tar.gz gentoo-81ef4172f6f37839efbedebc4de8d52b419b72a3.tar.bz2 gentoo-81ef4172f6f37839efbedebc4de8d52b419b72a3.zip |
kernel-2.eclass: Don't drop CPU OPT patch when CC=clang
Clang is supported by the CPU optimization patch. (USE=experimental)
Check for CC=clang and do not drop this patch.
Closes: https://bugs.gentoo.org/888727
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/kernel-2.eclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass index e13ed1a4f5ba..873d4a204669 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 |