UPSTREAM: arm64: Default to building compat vDSO with clang when CONFIG_CC_IS_CLANG
Rather than force the use of GCC for the compat cross-compiler, instead extract the target from CROSS_COMPILE_COMPAT and pass it to clang if the main compiler is clang. Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Will Deacon <will@kernel.org> (cherry picked from commit 24ee01a927bfe56c66429ec4b1df6955a814adc8) Signed-off-by: Mark Salyzyn <salyzyn@google.com> Bug: 154668398 Change-Id: I66ffadbc63519d9d97557335a4050d8c33233b5b
This commit is contained in:
committed by
Alistair Delva
parent
0ae601f9a3
commit
16df258295
@@ -49,7 +49,11 @@ $(warning Detected assembler with broken .inst; disassembly will be unreliable)
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_CC_IS_CLANG), y)
|
||||||
|
COMPATCC ?= $(CC) --target=$(notdir $(CROSS_COMPILE_COMPAT:%-=%))
|
||||||
|
else
|
||||||
COMPATCC ?= $(CROSS_COMPILE_COMPAT)gcc
|
COMPATCC ?= $(CROSS_COMPILE_COMPAT)gcc
|
||||||
|
endif
|
||||||
export COMPATCC
|
export COMPATCC
|
||||||
|
|
||||||
ifeq ($(CONFIG_GENERIC_COMPAT_VDSO), y)
|
ifeq ($(CONFIG_GENERIC_COMPAT_VDSO), y)
|
||||||
|
|||||||
Reference in New Issue
Block a user