feat: Support --dependency-file#1467
Merged
Merged
Conversation
lapla-cogito
commented
Jan 18, 2026
| } | ||
|
|
||
| /// Writes a dependency file in Makefile format. | ||
| fn write_dependency_file( |
Member
Author
There was a problem hiding this comment.
I referenced the writing process for mold:
https://github.com/rui314/mold/blob/17956fdfa1ea18171587d02a7439e7dab6732ea1/src/passes.cc#L3482
Member
Author
|
This is the comparison of dependency results when compiling this code: #include <stdio.h>
int main() {
printf("Hello world\n");
}GNU ldWildThis discrepancy stems from eliminating identical dependencies, so I believe it's essentially a non-issue. |
davidlattimore
approved these changes
Jan 18, 2026
davidlattimore
left a comment
Member
There was a problem hiding this comment.
Thanks for implementing this!
6291f31 to
a9fb9e4
Compare
a9fb9e4 to
c8d9768
Compare
davidlattimore
approved these changes
Jan 18, 2026
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.
This option is used when building Blender (the build itself succeeds, but feedback on Zulip revealed this issue). When this option enabled, the dependencies used during linking are written to the specified file in a format that make(1) can interpret.