From b71662108c4cd6b4b65f988034a20a86bebd58e5 Mon Sep 17 00:00:00 2001 From: Eugene Rodionov Date: Tue, 12 Sep 2023 10:17:58 +0200 Subject: [PATCH] lkl: fix clang-build and lkl-fuzzers build targets Due to some changes in scripts/Makefile.clang it no longer uses CROSS_COMPILE variable to pass --target= argument to llvm toolchain. Instead, it is using CLANG_TARGET_FLAGS_$(SRCARCH) which effectively is CLANG_TARGET_FLAGS_lkl. Acked-by: David Disseldorp --- tools/lkl/Makefile.autoconf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lkl/Makefile.autoconf b/tools/lkl/Makefile.autoconf index a15753193a4f6e..fc47f12a3093c1 100644 --- a/tools/lkl/Makefile.autoconf +++ b/tools/lkl/Makefile.autoconf @@ -166,7 +166,7 @@ endef define do_autoconf_llvm $(eval LLVM_PREFIX := $(if $(filter %/,$(LLVM)),$(LLVM))) $(eval LLVM_SUFFIX := $(if $(filter -%,$(LLVM)),$(LLVM))) - export CROSS_COMPILE := $(CROSS_COMPILE) + export CLANG_TARGET_FLAGS_lkl := $(CROSS_COMPILE) export CC := $(LLVM_PREFIX)clang$(LLVM_SUFFIX) export LD := $(LLVM_PREFIX)ld.lld$(LLVM_SUFFIX) export AR := $(LLVM_PREFIX)llvm-ar$(LLVM_SUFFIX)