Skip to content

Commit

Permalink
kernel-2.eclass: Don't drop CPU OPT patch when CC=clang
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mpagano committed Dec 29, 2022
1 parent f887800 commit 81ef417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eclass/kernel-2.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 81ef417

Please sign in to comment.