Stabilize `-Z print-link-args` as `--print link-args` by joshtriplett · Pull Req...
source link: https://github.com/rust-lang/rust/pull/91606
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is damaged, please click the button below to view the snapshot at that time.
We have stable options for adding linker arguments; we should have a
stable option to help debug linker arguments.
Add documentation for the new option. In the documentation, make it clear that
the exact format of the output is not a stable guarantee.
Team member @wesleywiser has proposed to merge this. The next step is review by the rest of the tagged team members:
- "consider changing to
--print link-args" resolved by #91606 (comment)
Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up!
See this document for info about what commands tagged team members can give me.
We actually have this option for printing something:
--print [crate-name|file-names|sysroot|target-libdir|cfg|target-list|target-cpus|target-features|relocation-models|code-models|tls-models|target-spec-json|native-static-libs] Compiler information to print on stdout
--print link-args would also fit well.
-C options are supposed to be for Codegen after all, which
-Cprint-link-args is not.
@petrochenkov this specific options has output that can depend on the source code input, right?
Is there precedent for other
Successfully merging this pull request may close these issues.
Aggregate valuable and interesting links.
Joyk means Joy of geeK