Stabilize -Z print-link-args as --print link-args by joshtriplett · Pull Request #91606 · rust-lang/rust (original) (raw)

Conversation

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

[ Show hidden characters]({{ revealButtonHref }})

joshtriplett

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.

@rust-highfive

r? @GuillaumeGomez

(rust-highfive has picked a reviewer for you, use r? to override)

@joshtriplett joshtriplett added the T-compiler

Relevant to the compiler team, which will review and decide on the PR/issue.

label

Dec 6, 2021

@joshtriplett joshtriplett changed the titlestabilize print link args Stabilize -Z print-link-args as -C print-link-args

Dec 6, 2021

@jyn514 jyn514 added the needs-fcp

This change is insta-stable, so needs a completed FCP to proceed.

label

Dec 6, 2021

@jyn514

@jyn514

jyn514

wesleywiser

@wesleywiser

@rfcbot

Collaborator

rfcbot commented

Dec 13, 2021

edited by michaelwoerister

Loading

@petrochenkov

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

@rfcbot concern "consider changing to --print link-args"

@pnkfelix

@petrochenkov this specific options has output that can depend on the source code input, right?

Is there precedent for other --print variants that depend on the source input? (Its an honest question; I'm not familiar with all the options listed, and could imagine that they all don't have such dependence, or that some do.)

@petrochenkov

Is there precedent for other --print variants that depend on the source input?

--print native-static-libs, for example.

@joshtriplett

@petrochenkov --print link-args seems reasonable; I'll look at what it would take to do that.

@joshtriplett joshtriplett changed the titleStabilize -Z print-link-args as -C print-link-args Stabilize -Z print-link-args as --print link-args

Jan 9, 2022

@rust-log-analyzer

This comment has been minimized.

@joshtriplett

We have stable options for adding linker arguments; we should have a stable option to help debug linker arguments.

@joshtriplett

The documentation makes it clear that the exact format of the output is not a stable guarantee.

@joshtriplett

@petrochenkov Done; this PR now stabilizes -Z print-link-args as --print link-args instead.

@petrochenkov

@rfcbot resolve "consider changing to --print link-args"

@rfcbot

🔔 This is now entering its final comment period, as per the review above. 🔔

@pnkfelix

@bors

📌 Commit 371bd46 has been approved by pnkfelix

@bors

🌲 The tree is currently closed for pull requests below priority 600. This pull request will be tested once the tree is reopened.

@bors bors added the S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

label

Jan 20, 2022

@pnkfelix pnkfelix added the relnotes

Marks issues that should be documented in the release notes of the next release.

label

Jan 20, 2022

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jan 20, 2022

@bors

…askrgr

Rollup of 13 pull requests

Successful merges:

Failed merges:

r? @ghost @rustbot modify labels: rollup

wip-sync pushed a commit to NetBSD/pkgsrc-wip that referenced this pull request

Apr 15, 2022

@he32

Pkgsrc changes:

Upstream changes:

Version 1.60.0 (2022-04-07)

Language

Compiler

* Refer to Rust's [platform support page][platform-support-doc] for more information on Rust's tiered platform support.

Libraries

Stabilized APIs

Cargo

Misc

Compatibility Notes

Internal Changes

These changes provide no direct user facing benefits, but represent significant improvements to the internals and overall performance of rustc and related tools.

netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request

May 25, 2022

@he32

Labels

disposition-merge

This issue / PR is in PFCP or FCP with a disposition to merge it.

finished-final-comment-period

The final comment period is finished for this PR / Issue.

needs-fcp

This change is insta-stable, so needs a completed FCP to proceed.

relnotes

Marks issues that should be documented in the release notes of the next release.

S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

T-compiler

Relevant to the compiler team, which will review and decide on the PR/issue.