linux60: Fix lto mode check

Fixes https://github.com/Frogging-Family/linux-tkg/issues/585
This commit is contained in:
Tk-Glitch
2022-09-01 19:59:01 +02:00
parent 1a37e7fad8
commit 093d74d417

View File

@@ -718,7 +718,7 @@ _tkg_srcprep() {
fi
fi
# Clang LTO
if [ "$_compiler_name" = "-llvm" ] && [ $_basever -ge 512 ]; then
if [ "$_compiler_name" = "-llvm" ] && ( [[ "$_basever" = 6* ]] || [ $_basever -ge 512 ] ); then
if [ "$_lto_mode" = "full" ]; then
_enable LTO_CLANG_FULL
_disable LTO_CLANG_THIN