Permalink
Browse files

Don't detect clang as cl.exe.

  • Loading branch information...
rbultje committed Oct 8, 2012
1 parent e78564a commit 36366a866a6d2761c0e1186290c2bdcfa9a205b9
Showing with 1 addition and 1 deletion.
  1. +1 −1 compilewrap.c
View
@@ -111,7 +111,7 @@ int main(int argc, char *argv[])
i++;
}
- if (i < argc && !strncmp(argv[i], "cl", 2))
+ if (i < argc && !strncmp(argv[i], "cl", 2) && (argv[i][2] == '.' || argv[i][2] == '\0'))
msvc = 1;
sprintf(temp_file_1, "preprocessed_%d.c", getpid());

0 comments on commit 36366a8

Please sign in to comment.