Skip to content

Commit 215fadf

Browse files
bwendlingmpe
authored andcommitted
powerpc/boot: Use clang when CC is clang
The gcc compiler may not be available if CC is clang. Signed-off-by: Bill Wendling <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 4c078c8 commit 215fadf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/powerpc/boot/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@
2121
all: $(obj)/zImage
2222

2323
ifdef CROSS32_COMPILE
24+
ifdef CONFIG_CC_IS_CLANG
25+
BOOTCC := $(CROSS32_COMPILE)clang
26+
else
2427
BOOTCC := $(CROSS32_COMPILE)gcc
28+
endif
2529
BOOTAR := $(CROSS32_COMPILE)ar
2630
else
2731
BOOTCC := $(CC)

0 commit comments

Comments
 (0)