Closed Bug 781529 Opened 10 years ago Closed 10 years ago
Use -MMD flag for dependency generation
We currently use -MD -MF file.pp to generate makefile dependencies based on preprocessor output. This includes system headers. We should add -MM so that system headers are not considered. This would remove a lot of file checking. At the same time, we should consider the headers in $(DIST)/system_wrapper and $(DIST)/stl_wrappers as system headers.
Actually, the -isystem part is not a good idea, as some of the wrappers are actually used for in-tree non-system headers. Using -isystem would make them fail to be used. Just limit to -MM.
Erf, in fact -MM doesn't do the right thing. Replacing -MD with -MMD does.
Attachment #651115 - Flags: review?(ted.mielczarek)
Summary: Add -MM flag for dependency generation → Use -MMD flag for dependency generation
Attachment #651115 - Flags: review?(ted.mielczarek) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
Depends on: 785679
Resolution: FIXED → WONTFIX
Target Milestone: mozilla17 → ---
You need to log in before you can comment on or make changes to this bug.