prepare: allow forcing LLVM_IAS (#314)

Signed-off-by: Theo Anderson <telans@posteo.de>
This commit is contained in:
James Beddek
2021-10-05 22:53:14 +13:00
committed by GitHub
parent e5b2f7f3bd
commit 987eeca6b2
2 changed files with 5 additions and 1 deletions

View File

@@ -100,6 +100,10 @@ _cpusched=""
# For advanced users. # For advanced users.
_compiler="" _compiler=""
# Force the use of the LLVM Integrated Assembler whether using LLVM, LTO or not.
# Set to "1" to enable.
_llvm_ias=""
# Clang LTO mode, only available with the "llvm" compiler - options are "no", "full" or "thin". # 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 ! # ! This is currently experimental and might result in an unbootable kernel - Not recommended !
# "no: do not enable LTO" # "no: do not enable LTO"

View File

@@ -186,7 +186,7 @@ _set_compiler(){
if [ "$_compiler" = "llvm" ]; then if [ "$_compiler" = "llvm" ]; then
_compiler_name="-llvm" _compiler_name="-llvm"
llvm_opt="LLVM=1" llvm_opt="LLVM=1 LLVM_IAS=${_llvm_ias:-0}"
if [ $_basever -ge 512 ]; then if [ $_basever -ge 512 ]; then
if [[ -z "$_lto_mode" || ! "$_lto_mode" =~ ^(no|thin|full)$ ]]; 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." plain "Would you like to enable Clang Link Time Optimizations (LTO) ? It may improve the performance of the kernel."