From afd9b3fd1658915284937ec8c408811809ce4a1c Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Wed, 18 Dec 2024 11:08:09 +0100 Subject: [PATCH] Revert "BACKPORT: FROMGIT: kbuild: Remove support for Clang's ThinLTO caching" This reverts commit f268fdb66d03df98574fb04a015d00a1d5585b06. --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index bdb982d3e..378599bc5 100755 --- a/Makefile +++ b/Makefile @@ -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