diff options
author | dim <dim@FreeBSD.org> | 2015-12-31 21:01:06 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2015-12-31 21:01:06 +0000 |
commit | 986cd97fb8d8b0815cd92099d7c71d4c2936afa8 (patch) | |
tree | 77a5ceb764fe34a1eead466589692c20dc2dfe48 | |
parent | d27c6ca57d78d462844b0905a193e16bcff41c04 (diff) | |
download | FreeBSD-src-986cd97fb8d8b0815cd92099d7c71d4c2936afa8.zip FreeBSD-src-986cd97fb8d8b0815cd92099d7c71d4c2936afa8.tar.gz |
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.
-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 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 |