Skip to content

Commit c95c59d

Browse files
pascua28vbajs
authored andcommitted
Revert "kbuild: Remove support for Clang's ThinLTO caching"
This reverts commit 8dd62e3. Signed-off-by: Yahya Wessam <yahyawessam2002@gmail.com>
1 parent d4d1979 commit c95c59d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ endif
958958
ifdef CONFIG_LTO_CLANG
959959
ifdef CONFIG_THINLTO
960960
lto-clang-flags := -flto=thin -fsplit-lto-unit $(call cc-option,-funified-lto)
961-
LDFLAGS += --thinlto-jobs=$(nproc --all)
961+
LDFLAGS += --thinlto-cache-dir=.thinlto-cache --thinlto-jobs=$(nproc --all)
962962

963963
# LLVM tunings
964964
KBUILD_LDFLAGS += -mllvm -inline-threshold=500

0 commit comments

Comments
 (0)