summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 42aaabd36359..fa421016926c 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