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

This commit is contained in:
marcel 2016-10-24 17:59:25 +00:00
parent 7c04d42209
commit 1f71b30c10

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.