tools: make sure clang is not considered to be visual studio

just because it starts with "cl". Spotted by Joerg Sonnenberger.
This commit is contained in:
Michael Natterer 2013-09-10 12:06:55 +02:00
parent 3654619c27
commit ac808b8b6b
1 changed files with 2 additions and 1 deletions

View File

@ -263,7 +263,8 @@ find_out_env_flags (void)
else
env_cc = CC;
if (g_ascii_strncasecmp (env_cc, "cl", 2) == 0)
if (g_ascii_strncasecmp (env_cc, "cl", 2) == 0 &&
g_ascii_strncasecmp (env_cc, "clang", 5) != 0)
msvc_syntax = TRUE;
if ((p = getenv ("CFLAGS")) != NULL)