Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Only pass -D parameters to the preprocessor

  • Loading branch information...
commit c3ccfdc02624a8f1dc4f5842550e71b98003cf7d 1 parent e34e1c0
@mstorsjo mstorsjo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  compilewrap.c
View
2  compilewrap.c
@@ -144,7 +144,7 @@ int main(int argc, char* argv[])
pass_argv[pass_argc++] = argv[i];
cpp_argv[cpp_argc++] = argv[i++];
cc_argv[cc_argc++] = temp_file_2;
- } else if (!strcmp(argv[i], "-MMD")) {
+ } else if (!strcmp(argv[i], "-MMD") || !strncmp(argv[i], "-D", 2)) {
// Preprocessor-only parameter
pass_argv[pass_argc++] = argv[i];
cpp_argv[cpp_argc++] = argv[i++];
Please sign in to comment.
Something went wrong with that request. Please try again.