This is a patch for bug [1]
Warnings should not be emitted with -M and -MM flags, because this mode is only used for generate MakeFiles.
Differential D32341
Fix a bug that warnings generated with -M or -MM flags yamaguchi on Apr 21 2017, 12:52 AM. Authored by
Details
This is a patch for bug [1] Warnings should not be emitted with -M and -MM flags, because this mode is only used for generate MakeFiles.
Diff Detail Event TimelineComment Actions This also disables warnings for -MD and -MMD which shouldn't happen as we're actually compiling code here and are probably compiling a project. E.g. for people that use this mode to create dependency files while initially building (to figure out when to rebuild each object), this will effectively force -w to the whole build process which is not good. I would just manually check for -M and -MM where we only run the preprocessor and where adding -w is safe. Also please add another test that we actually get the warnings for -MD and another one for -MMD. Otherwise this look good. Comment Actions @teemperor Comment Actions I think you will see the issue if you add a negative test case, too. I.e. as Raphael said in -MD and -MMD mode we should be able to see warnings. Comment Actions LGTM, good job! (Sorry for the delay, I think I got interrupted here by the GSoC start...) |
Typo.