Commit 215fadfe authored by Bill Wendling's avatar Bill Wendling Committed by Michael Ellerman
Browse files

powerpc/boot: Use clang when CC is clang



The gcc compiler may not be available if CC is clang.

Signed-off-by: default avatarBill Wendling <morbo@google.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201120224034.191382-3-morbo@google.com
parent 4c078c86
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -21,7 +21,11 @@
all: $(obj)/zImage

ifdef CROSS32_COMPILE
ifdef CONFIG_CC_IS_CLANG
    BOOTCC := $(CROSS32_COMPILE)clang
else
    BOOTCC := $(CROSS32_COMPILE)gcc
endif
    BOOTAR := $(CROSS32_COMPILE)ar
else
    BOOTCC := $(CC)