aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-10-30 11:36:42 +1100
committerPatrick Georgi <pgeorgi@google.com>2014-10-30 07:46:05 +0100
commit16407abdddb13d74f2eb1c0ac6dc82b31dc6ea21 (patch)
treeb8c6cfa7417ac063983b27383a17db2a99f28565 /Makefile
parent1e3a22649a92e9783d95b41ae33027c6a39e9855 (diff)
downloadcoreboot-16407abdddb13d74f2eb1c0ac6dc82b31dc6ea21.tar.gz
coreboot-16407abdddb13d74f2eb1c0ac6dc82b31dc6ea21.tar.xz
coreboot-16407abdddb13d74f2eb1c0ac6dc82b31dc6ea21.zip
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 42aaabd36..fa4210169 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