Skip to content

Track header dependencies during compilation - #41

Draft
zaniebot wants to merge 1 commit into
mainfrom
build/compiler-header-dependencies
Draft

zaniebot wants to merge 1 commit into
mainfrom
build/compiler-header-dependencies

Conversation

@zaniebot

Copy link
Copy Markdown
Collaborator

The Unix build makes most objects depend on the full Python header list, so changing a private header recompiles unrelated code. Use compiler-generated dependency files to rebuild the objects that include each header, with the manual dependency list as a fallback for unsupported compilers or --disable-dependency-tracking. Rebuild tracked objects whose dependency files are missing, and remove the files during make clean.

@zaniebot zaniebot added the proj:build-time CPython build and CI time improvements label Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

proj:build-time CPython build and CI time improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant