Detect clang on macOS. The version string is slightly different.

This commit is contained in:
Marcel Moolenaar 2016-10-24 17:59:25 +00:00
parent 871afaefab
commit 5b424cba0a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=307872

View File

@ -147,7 +147,7 @@ ${X_}COMPILER_TYPE:= clang
${X_}COMPILER_TYPE:= gcc
. elif ${_v:M\(GCC\)}
${X_}COMPILER_TYPE:= gcc
. elif ${_v:Mclang}
. elif ${_v:Mclang} || ${_v:M(clang-*.*.*)}
${X_}COMPILER_TYPE:= clang
. else
.error Unable to determine compiler type for ${cc}=${${cc}}. Consider setting ${X_}COMPILER_TYPE.