summaryrefslogtreecommitdiffstats
path: root/share/mk
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2015-12-31 22:48:46 +0000
committerdim <dim@FreeBSD.org>2015-12-31 22:48:46 +0000
commit50bc5a4b52d9caaec453dd3455dc38555687c430 (patch)
tree2fc6f38a533aeb3b7c1e1ec95b66832247b0f93e /share/mk
parent91d6917b30c14777a49f3a901d079c585308b392 (diff)
downloadFreeBSD-src-50bc5a4b52d9caaec453dd3455dc38555687c430.zip
FreeBSD-src-50bc5a4b52d9caaec453dd3455dc38555687c430.tar.gz
Merge r293006 from clang380-import branch:
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. MFC after: 3 days
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.compiler.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/mk/bsd.compiler.mk b/share/mk/bsd.compiler.mk
index d7763e4..dee6a1d 100644
--- a/share/mk/bsd.compiler.mk
+++ b/share/mk/bsd.compiler.mk
@@ -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
OpenPOWER on IntegriCloud