Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add depfiles for ninja build #52

Merged
merged 2 commits into from
Jan 7, 2025
Merged

Conversation

LagoLunatic
Copy link
Contributor

@LagoLunatic LagoLunatic commented Dec 9, 2024

This adds the depfile attribute to the mwcc ninja build command so that mwcc will generate a list of headers for each source file, and ninja will use that to detect changes. This fixes the issue where objdiff's auto-rebuild-on-change wouldn't do anything when a header file was modified.

transform_dep.py was copied with no changes from dtk-template: https://github.com/encounter/dtk-template/blob/54bf50ee31ef7242c74f398529279c62394c68c6/tools/transform_dep.py

tools/configure.py Outdated Show resolved Hide resolved
Copy link
Owner

@AetiasHax AetiasHax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

@AetiasHax AetiasHax merged commit 6d84aa8 into AetiasHax:main Jan 7, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants