svn commit: r405599 - head/Mk/Uses
Bryan Drewery
bdrewery at FreeBSD.org
Fri Jan 8 23:41:27 UTC 2016
Author: bdrewery
Date: Fri Jan 8 23:41:25 2016
New Revision: 405599
URL: https://svnweb.freebsd.org/changeset/ports/405599
Log:
Make COMPILER_VERSION more compatible with clang 3.8 trunk.
"clang version 3.8.0 (trunk 256945) (based on LLVM 3.8.0svn)" was giving
"38 38" was a result. Now duplicates for fmake are trimmed and only the first
version found is used for bmake using its :tW.
With hat: portmgr
In collaboration with: dim
Modified:
head/Mk/Uses/compiler.mk
Modified: head/Mk/Uses/compiler.mk
==============================================================================
--- head/Mk/Uses/compiler.mk Fri Jan 8 23:22:54 2016 (r405598)
+++ head/Mk/Uses/compiler.mk Fri Jan 8 23:41:25 2016 (r405599)
@@ -67,7 +67,11 @@ _COMPILER_ARGS+= features
.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
More information about the svn-ports-all
mailing list