From 16407abdddb13d74f2eb1c0ac6dc82b31dc6ea21 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Thu, 30 Oct 2014 11:36:42 +1100 Subject: Makefile: Fix HOSTCC for clang Change-Id: I0470cf2c1e5266ceb33d55c9d616bfff37e97ed6 Signed-off-by: Edward O'Callaghan Reviewed-on: http://review.coreboot.org/7272 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 42aaabd363..fa42101692 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3