Skip to content

build: rebuild objects when the headers they include change - #4502

Closed
JinZhou5042 wants to merge 5 commits into
cooperative-computing-lab:masterfrom
JinZhou5042:build-track-header-dependencies
Closed

JinZhou5042 wants to merge 5 commits into
cooperative-computing-lab:masterfrom
JinZhou5042:build-track-header-dependencies

Conversation

@JinZhou5042

Copy link
Copy Markdown
Member

Proposed Changes

For #4501

configure adds -MMD -MP to the internal compile flags.

  • -MMD makes each compile also write a .d file that lists the headers the object includes, and rules.mk includes these files, so an object is rebuilt when one of its headers changes.
  • -MP adds an empty rule for each header, so removing a header does not stop make with "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 test Run local tests prior to pushing.
  • make format Format source code to comply with lint policies. Note that some lint errors can only be resolved manually (e.g., Python)
  • make lint Run lint on source code prior to pushing.
  • Manual Update: Update the manual to reflect user-visible changes.
  • Type Labels: Select a github label for the type: bugfix, enhancement, etc.
  • Product Labels: Select a github label for the product: TaskVine, Makeflow, etc.
  • PR RTM: Mark your PR as ready to merge.

@JinZhou5042 JinZhou5042 added the bug For modifications that fix a flaw in the code. label Oct 11, 2026
@JinZhou5042 JinZhou5042 self-assigned this Oct 11, 2026
Comment thread rules.mk Resolved
@JinZhou5042
JinZhou5042 force-pushed the build-track-header-dependencies branch from 1a5957b to d0776b0 Compare October 14, 2026 20:37
@dthain

dthain commented Nov 19, 2026

Copy link
Copy Markdown
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.

@dthain dthain closed this Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug For modifications that fix a flaw in the code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants