diff options
author | Edward O'Callaghan <eocallaghan@alterapraxis.com> | 2014-06-27 18:14:47 +1000 |
---|---|---|
committer | Edward O'Callaghan <eocallaghan@alterapraxis.com> | 2014-06-29 19:17:49 +0200 |
commit | 480790b593607c5e5d472c1aa45813b08f580cf9 (patch) | |
tree | aee242cbdbbc80627e058541f036cc0147b61bd9 | |
parent | d2a7523cb18e804e71eee16656deab364dbf6603 (diff) | |
download | coreboot-480790b593607c5e5d472c1aa45813b08f580cf9.tar.xz |
Makefile: HOSTCC set too late in clang builds
Currently we set HOSTCC=clang a little late meaning some minor bits
(utils/kconfig) are built with GCC. Move the assignment up the Makefile.
Change-Id: Ic72ad808eba0c0bf508bde34fb9bf0390c0b1d4d
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/6140
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Idwer Vollering <vidwer@gmail.com>
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -69,6 +69,9 @@ endif endif HOSTCC = gcc +ifeq ($(CONFIG_COMPILER_LLVM_CLANG),y) +HOSTCC := clang +endif HOSTCXX = g++ HOSTCFLAGS := -g HOSTCXXFLAGS := -g @@ -126,8 +129,6 @@ CC_armv7:=clang CFLAGS_aarch64 = -no-integrated-as -Qunused-arguments -target aarch64-eabi -ccc-gcc-name $(CC_aarch64) CC_aarch64:=clang - -HOSTCC:=clang endif include toolchain.inc |