Repository navigation
build: rebuild objects when the headers they include change - #4502
Closed
JinZhou5042 wants to merge 5 commits into
Closed
JinZhou5042 wants to merge 5 commits into
JinZhou5042 wants to merge 5 commits into
Conversation
btovar
requested changes
Oct 12, 2026
JinZhou5042
force-pushed
the
build-track-header-dependencies
branch
from
October 14, 2026 20:37
1a5957b to
d0776b0
Compare
Member
|
Jin, I think we are going to decline this one. I don't think the increase in complexity here buys us a lot in terms of software engineering. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed Changes
For #4501
configureadds-MMD -MPto the internal compile flags.-MMDmakes each compile also write a.dfile that lists the headers the object includes, andrules.mkincludes these files, so an object is rebuilt when one of its headers changes.-MPadds an empty rule for each header, so removing a header does not stopmakewith "No rule to make target".Merge Checklist
The following items must be completed before PRs can be merged.
Check these off to verify you have completed all steps.
make testRun local tests prior to pushing.make formatFormat source code to comply with lint policies. Note that some lint errors can only be resolved manually (e.g., Python)make lintRun lint on source code prior to pushing.