summaryrefslogtreecommitdiff
path: root/src/Kconfig
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2024-08-21 10:12:16 +0200
committerFelix Held <felix-coreboot@felixheld.de>2024-08-24 12:50:38 +0000
commitb56f407614b58ab139bef3612195fbdf07670436 (patch)
tree1501556f0d6e0443d85e57c096a707035d3f3ae6 /src/Kconfig
parent23073b2753cce923e2dda3a13f045dbd969174de (diff)
Add initial experimental LTO support
This will not succeed in compiling on all target and compiler combinations but at least gets the ball rolling. The change is not invasive. Some notes: - GCC has issues with LTO on ARM - Clang uses LLD automatically on some arch - Clang with LTO fails on x86 as it forwards the linking to GCC for some reason - SMM building succeeds but the binary is empty Change-Id: Ieb9204777fd349542744a8946e2207731c37969c Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/84003 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/Kconfig')
-rw-r--r--src/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Kconfig b/src/Kconfig
index b6dc67f00a..55fad952bb 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -116,6 +116,13 @@ config CCACHE
For details see https://ccache.samba.org.
+config LTO
+ bool "Use link time optimization (LTO) (experimental)"
+ default n
+ help
+ Compile with link time optimization. This can often decrease the
+ final binary size, but may increase compilation time.
+
config IWYU
bool "Test platform with include-what-you-use"
help