diff options
author | dim <dim@FreeBSD.org> | 2016-01-03 17:19:17 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2016-01-03 17:19:17 +0000 |
commit | dbf2ac57201263e4d0db0d09632f666a71aad3e3 (patch) | |
tree | 6f488e527dce827737485566871bc367262924ff /share/mk | |
parent | 2ab722cc043c16866ddbc46bc6548867207c1ae4 (diff) | |
download | FreeBSD-src-dbf2ac57201263e4d0db0d09632f666a71aad3e3.zip FreeBSD-src-dbf2ac57201263e4d0db0d09632f666a71aad3e3.tar.gz |
MFC r293014:
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.
Diffstat (limited to 'share/mk')
-rw-r--r-- | share/mk/bsd.compiler.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/mk/bsd.compiler.mk b/share/mk/bsd.compiler.mk index 511d377..2c62778 100644 --- a/share/mk/bsd.compiler.mk +++ b/share/mk/bsd.compiler.mk @@ -40,7 +40,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 |