You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PKGBUILD: add "clang" mode and rename _use_llvm_lto to _use_llvm
Add a new "clang" option to _use_llvm (formerly _use_llvm_lto) that
uses Clang as the compiler with LTO disabled. This is useful for
AutoFDO/Propeller profiling workflows and testing without the overhead
of LTO linking.
Signed-off-by: Peter Jung <admin@ptr1337.dev>
Copy file name to clipboardExpand all lines: linux-cachyos/PKGBUILD
+25-17Lines changed: 25 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -81,13 +81,14 @@
81
81
# - "generic" (kernel's default - to share the package between machines with different CPU µarch as long as they are x86-64)
82
82
:"${_processor_opt:=}"
83
83
84
-
# Clang LTO mode, only available with the "llvm" compiler - options are "none", "full" or "thin".
85
-
# ATTENTION - one of three predefined values should be selected!
86
-
# "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."
87
-
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
88
-
# "thin-dist: Similar to thin, but uses a distributed model rather than in-process: https://discourse.llvm.org/t/rfc-distributed-thinlto-build-for-kernel/85934"
89
-
# "none: disable LTO
90
-
:"${_use_llvm_lto:=thin}"
84
+
# Compiler and LTO selection - options are "none", "clang", "thin", "thin-dist" or "full".
85
+
# ATTENTION - one of the predefined values should be selected!
86
+
# "none": use GCC with LTO disabled.
87
+
# "clang": use Clang as compiler but with LTO disabled.
88
+
# "thin": use Clang with ThinLTO - multiple threads, faster and uses less memory, may have a lower runtime performance than Full.
89
+
# "thin-dist": use Clang with distributed ThinLTO - https://discourse.llvm.org/t/rfc-distributed-thinlto-build-for-kernel/85934
90
+
# "full": use Clang with Full LTO - 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains.
0 commit comments