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:
parent
1e3a22649a
commit
16407abddd
6
Makefile
6
Makefile
|
@ -74,10 +74,7 @@ ifneq ($(Q),)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
HOSTCC = gcc
|
HOSTCC := gcc
|
||||||
ifeq ($(CONFIG_COMPILER_LLVM_CLANG),y)
|
|
||||||
HOSTCC := clang
|
|
||||||
endif
|
|
||||||
HOSTCXX = g++
|
HOSTCXX = g++
|
||||||
HOSTCFLAGS := -g
|
HOSTCFLAGS := -g
|
||||||
HOSTCXXFLAGS := -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
|
# 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
|
CFLAGS_x86_32 = -no-integrated-as -Qunused-arguments -target i386-linux-elf -m32
|
||||||
CC_x86_32:=clang
|
CC_x86_32:=clang
|
||||||
|
HOSTCC := clang
|
||||||
|
|
||||||
ifneq ($(CONFIG_MMX),y)
|
ifneq ($(CONFIG_MMX),y)
|
||||||
CFLAGS_x86_32 += -mno-mmx
|
CFLAGS_x86_32 += -mno-mmx
|
||||||
|
|
Loading…
Reference in New Issue