From d65f57834694995496c21aa9bd2c1b200c7f54eb Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Thu, 1 Sep 2022 15:46:32 +0200 Subject: [PATCH] Allow LTO mode on 6.*+ --- linux-tkg-config/prepare | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index c828116..928f631 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -261,7 +261,7 @@ _set_compiler(){ if [ "$_compiler" = "llvm" ]; then _compiler_name="-llvm" llvm_opt="LLVM=1 LLVM_IAS=${_llvm_ias:-0}" - if [ $_basever -ge 512 ]; then + if [[ "$_basever" = 6* ]] || ( [[ "$_basever" = 5* ]] && [ $_basever -ge 512 ] ); then if [[ -z "$_lto_mode" || ! "$_lto_mode" =~ ^(no|thin|full)$ ]]; then plain "Would you like to enable Clang Link Time Optimizations (LTO) ? It may improve the performance of the kernel." warning "This is currently experimental and might result in an unbootable kernel - Not recommended"