svn commit: r293006 - projects/clang380-import/share/mk

Dimitry Andric dim at FreeBSD.org
Thu Dec 31 21:01:08 UTC 2015


Author: dim
Date: Thu Dec 31 21:01:06 2015
New Revision: 293006
URL: https://svnweb.freebsd.org/changeset/base/293006

Log:
  For determining the compiler version, quote the string to be echo'd,
  otherwise the command might fail.  This is because clang -v now results
  in the following:
  
  FreeBSD clang version 3.8.0 (trunk 256633) (based on LLVM 3.8.0svn)
  
  The second "3.8.8svn)" string tripped up the shell command.

Modified:
  projects/clang380-import/share/mk/bsd.compiler.mk

Modified: projects/clang380-import/share/mk/bsd.compiler.mk
==============================================================================
--- projects/clang380-import/share/mk/bsd.compiler.mk	Thu Dec 31 20:52:39 2015	(r293005)
+++ projects/clang380-import/share/mk/bsd.compiler.mk	Thu Dec 31 21:01:06 2015	(r293006)
@@ -138,7 +138,7 @@ COMPILER_TYPE:=	clang
 . endif
 .endif
 .if !defined(COMPILER_VERSION)
-COMPILER_VERSION!=echo ${_v:M[1-9].[0-9]*} | awk -F. '{print $$1 * 10000 + $$2 * 100 + $$3;}'
+COMPILER_VERSION!=echo "${_v:M[1-9].[0-9]*}" | awk -F. '{print $$1 * 10000 + $$2 * 100 + $$3;}'
 .endif
 .undef _v
 .endif


More information about the svn-src-projects mailing list