Add a warning about clang LTO usage
This commit is contained in:
@@ -86,6 +86,7 @@ _cpusched=""
|
||||
_compiler=""
|
||||
|
||||
# Clang LTO mode, only available with the "llvm" compiler - options are "no", "full" or "thin".
|
||||
# ! This is currently experimental and might result in an unbootable kernel - Not recommended !
|
||||
# "no: do not enable LTO"
|
||||
# "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."
|
||||
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
|
||||
|
@@ -182,6 +182,7 @@ _set_compiler(){
|
||||
if [ $_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"
|
||||
_lto_prompt_array=(
|
||||
"No: do not enable LTO"
|
||||
"Full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."
|
||||
|
Reference in New Issue
Block a user