Skip to content

Commit

Permalink
Don't detect clang as cl.exe.
Browse files Browse the repository at this point in the history
  • Loading branch information
rbultje committed Oct 8, 2012
1 parent e78564a commit 36366a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compilewrap.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ int main(int argc, char *argv[])
i++; 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; msvc = 1;


sprintf(temp_file_1, "preprocessed_%d.c", getpid()); sprintf(temp_file_1, "preprocessed_%d.c", getpid());
Expand Down

0 comments on commit 36366a8

Please sign in to comment.