Makefile: Fix HOSTCC for clang

Change-Id: I0470cf2c1e5266ceb33d55c9d616bfff37e97ed6
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/7272
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
Edward O'Callaghan 2014-10-30 11:36:42 +11:00 committed by Patrick Georgi
parent 1e3a22649a
commit 16407abddd
1 changed files with 2 additions and 4 deletions

View File

@ -74,10 +74,7 @@ ifneq ($(Q),)
endif
endif
HOSTCC = gcc
ifeq ($(CONFIG_COMPILER_LLVM_CLANG),y)
HOSTCC := clang
endif
HOSTCC := gcc
HOSTCXX = g++
HOSTCFLAGS := -g
HOSTCXXFLAGS := -g
@ -122,6 +119,7 @@ ifeq ($(CONFIG_COMPILER_LLVM_CLANG),y)
# this means the triple is i386-linux-elf instead of i386-none-elf
CFLAGS_x86_32 = -no-integrated-as -Qunused-arguments -target i386-linux-elf -m32
CC_x86_32:=clang
HOSTCC := clang
ifneq ($(CONFIG_MMX),y)
CFLAGS_x86_32 += -mno-mmx