Permalink
Browse files

Only pass -D parameters to the preprocessor

  • Loading branch information...
mstorsjo committed Sep 2, 2012
1 parent e34e1c0 commit c3ccfdc02624a8f1dc4f5842550e71b98003cf7d
Showing with 1 addition and 1 deletion.
  1. +1 −1 compilewrap.c
View
@@ -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++];

0 comments on commit c3ccfdc

Please sign in to comment.