Skip to content

Commit

Permalink
lkl: fix clang-build and lkl-fuzzers build targets
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
rodionov authored and ddiss committed Sep 12, 2023
1 parent 091476f commit b716621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/lkl/Makefile.autoconf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b716621

Please sign in to comment.