From 05e386d9adf8a23ae2e6135cca92dcc72bae36d8 Mon Sep 17 00:00:00 2001 From: adam Date: Wed, 31 Jul 2013 06:37:27 +0000 Subject: Construct CC_VERSION differenty; fix for Xcode where clang reports itself as Apple LLVM --- mk/compiler/clang.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mk/compiler') diff --git a/mk/compiler/clang.mk b/mk/compiler/clang.mk index 871cdd4c3b7..8d0b22d192c 100644 --- a/mk/compiler/clang.mk +++ b/mk/compiler/clang.mk @@ -1,4 +1,4 @@ -# $NetBSD: clang.mk,v 1.12 2013/05/29 13:19:02 joerg Exp $ +# $NetBSD: clang.mk,v 1.13 2013/07/31 06:37:27 adam Exp $ # # This is the compiler definition for the clang compiler. # @@ -41,7 +41,7 @@ PKG_CPP:= ${CPPPATH} .if exists(${CCPATH}) CC_VERSION_STRING!= ${CCPATH} -v 2>&1 -CC_VERSION!= ${CCPATH} --version 2>&1 | ${SED} -n "s/clang version /clang-/p" +CC_VERSION!= ${CCPATH} --version 2>&1 | ${SED} -n "s/^.* version /clang-/p" .else CC_VERSION_STRING?= ${CC_VERSION} CC_VERSION?= clang -- cgit v1.2.3