From 600d72929c22309efa5aca4d40999e10e611f288 Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Tue, 27 Mar 2012 11:02:02 +0000 Subject: Make compatible with newer clang version output which can include distributor name as first word svn path=/trunk/tools/buildsystem/; revision=13738 --- makefiles/Makefile.tools | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/makefiles/Makefile.tools b/makefiles/Makefile.tools index c27b55c..c6f9dd6 100644 --- a/makefiles/Makefile.tools +++ b/makefiles/Makefile.tools @@ -400,11 +400,10 @@ else ifeq ($(word 1,$(ccvsn)),clang) toolchain := clang endif - ifeq ($(word 1,$(ccvsn)),Apple) - ifeq ($(word 2,$(ccvsn)),clang) - # Apple clang - toolchain := clang - endif + ifeq ($(word 2,$(ccvsn)),clang) + # Some newer clangs have distributor as first word + # (ie, Debian, Apple, etc) + toolchain := clang endif endif -- cgit v1.2.3