Add a warning about clang LTO usage

This commit is contained in:
Tk-Glitch
2021-06-03 13:15:52 +02:00
parent a9fb59a475
commit 9d3dc031ef
2 changed files with 2 additions and 0 deletions

View File

@@ -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."

View File

@@ -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."