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"