From 0970e92867d11d12214ca198578364a17ef17bea Mon Sep 17 00:00:00 2001 From: Sedat Dilek Date: Fri, 17 Jun 2022 13:34:49 +0200 Subject: [PATCH] clang: thinlto: Add --thinlto-jobs=4 to KBUILD_LDFLAGS --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 1a6678d817bd..a7a7f12e2349 100644 --- a/Makefile +++ b/Makefile @@ -896,6 +896,7 @@ 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 +KBUILD_LDFLAGS += --thinlto-jobs=4 else CC_FLAGS_LTO := -flto endif -- 2.36.1