add a --dep-file option#28767
Conversation
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @brson (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
|
It's worth noting that |
|
Looks like #28768 overlaps this pull request and does a better job, so closing this one in favor of that. |
Some projects need/want finer-grained control over where dependency information is generated, rather than accepting the rustc default. For those projects, add a --dep-file option which enables them to specify the location of the dependency info file. It looks like config::Options had such support already, so all that needs to be done is adding the appropriate option and stuffing the information into the options structure. Fixes rust-lang#28716.
Some projects need/want finer-grained control over where dependency
information is generated, rather than accepting the rustc default. For
those projects, add a --dep-file option which enables them to specify
the location of the dependency info file. It looks like config::Options
had such support already, so all that needs to be done is adding the
appropriate option and stuffing the information into the options
structure.
Fixes #28716.