From 2c342f508065db05f31ac04a9dee934759d7c039 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Fri, 27 Jun 2014 18:22:53 +1000 Subject: Makefile.inc: Detect if a working clang binary exists before set Let us not assume the 'clang' binary exists and is working just because the user selected it in .config Change-Id: Iad3cbf4a7cda0e1c4d435fbe426b7247233973ea Signed-off-by: Edward O'Callaghan Reviewed-on: http://review.coreboot.org/6141 Tested-by: build bot (Jenkins) Reviewed-by: Idwer Vollering --- Makefile.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile.inc') diff --git a/Makefile.inc b/Makefile.inc index 7d1c4ae20e..a6a8cbe33e 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -30,7 +30,7 @@ ifneq ($(NOCOMPILE),1) ifneq ($(CONFIG_ANY_TOOLCHAIN),y) _toolchain=$(shell $(CC_x86_32) -v 2>&1 |grep -q "gcc version .*coreboot toolchain" && echo coreboot) ifeq ($(CONFIG_COMPILER_LLVM_CLANG),y) -_toolchain=coreboot +_toolchain=$(shell $(CC_x86_32) -v 2>&1 |grep -q "clang version" && echo coreboot) endif ifneq ($(_toolchain),coreboot) $(error Please use the coreboot toolchain (or prove that your toolchain works)) -- cgit v1.2.3