Revert "BACKPORT: FROMGIT: kbuild: Remove support for Clang's ThinLTO caching"

This reverts commit f268fdb66d.
This commit is contained in:
Ksawlii 2024-12-18 11:08:09 +01:00
parent 48c33cf21c
commit afd9b3fd16

View file

@ -982,6 +982,7 @@ endif
ifdef CONFIG_LTO_CLANG
ifdef CONFIG_LTO_CLANG_THIN
CC_FLAGS_LTO := -flto=thin -fsplit-lto-unit
KBUILD_LDFLAGS += --thinlto-cache-dir=$(extmod-prefix).thinlto-cache
else
CC_FLAGS_LTO := -flto
endif