aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/Uses/objc.mk
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2016-01-15 02:54:29 +0800
committerantoine <antoine@FreeBSD.org>2016-01-15 02:54:29 +0800
commitf8dff04af4211c68435f230f1a60afcdcee2b5fc (patch)
tree62323c4e8570df433c963e5dfaf3a64ea3f1e874 /Mk/Uses/objc.mk
parent99cbf90585f1ee6087054d0dda732d3961493f99 (diff)
downloadfreebsd-ports-gnome-f8dff04af4211c68435f230f1a60afcdcee2b5fc.tar.gz
freebsd-ports-gnome-f8dff04af4211c68435f230f1a60afcdcee2b5fc.tar.zst
freebsd-ports-gnome-f8dff04af4211c68435f230f1a60afcdcee2b5fc.zip
Extend r405599 to make COMPILER_VERSION and ALT_COMPILER_VERSION more
compatible with clang 3.8 trunk PR: 206074 With hat: portmgr
Diffstat (limited to 'Mk/Uses/objc.mk')
-rw-r--r--Mk/Uses/objc.mk12
1 files changed, 10 insertions, 2 deletions
diff --git a/Mk/Uses/objc.mk b/Mk/Uses/objc.mk
index 631fa851d2e8..90f7f7e26527 100644
--- a/Mk/Uses/objc.mk
+++ b/Mk/Uses/objc.mk
@@ -16,7 +16,11 @@ IGNORE= USES=objc only accepts no arguments or 'compiler'
.endif
_CCVERSION!= ${CC} --version
-COMPILER_VERSION= ${_CCVERSION:M[0-9].[0-9]*:C/([0-9]).([0-9]).*/\1\2/g}
+.if defined(.PARSEDIR)
+COMPILER_VERSION= ${_CCVERSION:M[0-9].[0-9]*:tW:C/([0-9]).([0-9]).*/\1\2/g}
+.else
+COMPILER_VERSION= ${_CCVERSION:M[0-9].[0-9]*:C/([0-9]).([0-9]).*/\1\2/g:u}
+.endif
.if ${_CCVERSION:Mclang}
COMPILER_TYPE= clang
.else
@@ -32,7 +36,11 @@ _ALTCCVERSION!= /usr/bin/clang --version
_ALTCCVERSION!= /usr/bin/gcc --version
.endif
-ALT_COMPILER_VERSION= ${_ALTCCVERSION:M[0-9].[0-9]*:C/([0-9]).([0-9]).*/\1\2/g}
+.if defined(.PARSEDIR)
+ALT_COMPILER_VERSION= ${_ALTCCVERSION:M[0-9].[0-9]*:tW:C/([0-9]).([0-9]).*/\1\2/g}
+.else
+ALT_COMPILER_VERSION= ${_ALTCCVERSION:M[0-9].[0-9]*:C/([0-9]).([0-9]).*/\1\2/g:u}
+.endif
.if ${_ALTCCVERSION:Mclang}
ALT_COMPILER_TYPE= clang
.elif !empty(_ALTCCVERSION)