[coreboot-gerrit] New patch to review for coreboot: f38d203 Makefile: HOSTCC set too late in clang builds

Edward O'Callaghan (eocallaghan@alterapraxis.com) gerrit at coreboot.org
Fri Jun 27 10:36:45 CEST 2014


Edward O'Callaghan (eocallaghan at alterapraxis.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/6140

-gerrit

commit f38d2034b6acdfd22b0e4e80204b2f45f558901a
Author: Edward O'Callaghan <eocallaghan at alterapraxis.com>
Date:   Fri Jun 27 18:14:47 2014 +1000

    Makefile: HOSTCC set too late in clang builds
    
    Currently we set HOSTCC=clang a little late meaning some minior bits
    (utils/kconfig) are built with GCC. Move the assigment up the Makefile.
    
    Change-Id: Ic72ad808eba0c0bf508bde34fb9bf0390c0b1d4d
    Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
---
 Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 195bfe6..aacd425 100644
--- a/Makefile
+++ b/Makefile
@@ -69,6 +69,9 @@ endif
 endif
 
 HOSTCC = gcc
+ifeq ($(CONFIG_COMPILER_LLVM_CLANG),y)
+HOSTCC := clang
+endif
 HOSTCXX = g++
 HOSTCFLAGS := -g
 HOSTCXXFLAGS := -g
@@ -126,8 +129,6 @@ CC_armv7:=clang
 
 CFLAGS_aarch64 = -no-integrated-as -Qunused-arguments -target aarch64-eabi -ccc-gcc-name $(CC_aarch64)
 CC_aarch64:=clang
-
-HOSTCC:=clang
 endif
 
 include toolchain.inc



More information about the coreboot-gerrit mailing list