linker: Refactor interface for passing arguments to linker by petrochenkov · Pull Request #126832 · rust-lang/rust (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation18 Commits2 Checks6 Files changed

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 }})

petrochenkov

Separate arguments into passed to the underlying linker, to cc wrapper, or supported by both.
Also avoid allocations in all the argument passing functions.

The interfaces would look nicer if not the limitations on returning &mut Self in dyn-compatible traits, and unnecessary conflicts between Trait and dyn Trait methods.

try-job: armhf-gnu
try-job: aarch64-gnu
try-job: dist-x86_64-linux
try-job: x86_64-msvc
try-job: i686-msvc
try-job: dist-x86_64-apple
try-job: test-various

@rustbot

r? @BoxyUwU

rustbot has assigned @BoxyUwU.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

T-compiler

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

labels

Jun 22, 2024

@BoxyUwU

jieyouxu

Choose a reason for hiding this comment

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

Thanks, the changes look good, I'll throw it at a bunch of random try jobs in case some test somewhere catches any unintended changes. If the try jobs come back green, then r=me!

@jieyouxu

@bors

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

Jun 29, 2024

@bors

linker: Refactor interface for passing arguments to linker

Separate arguments into passed to the underlying linker, to cc wrapper, or supported by both. Also avoid allocations in all the argument passing functions.

The interfaces would look nicer if not the limitations on returning &mut Self in dyn-compatible traits, and unnecessary conflicts between Trait and dyn Trait methods.

try-job: armhf-gnu try-job: aarch64-gnu try-job: dist-x86_64-linux try-job: x86_64-msvc try-job: i686-msvc try-job: dist-x86_64-apple try-job: test-various

@rust-log-analyzer

This comment has been minimized.

@bors

@bors bors added S-waiting-on-author

Status: This is awaiting some action (such as code changes or more information) from the author.

and removed S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

labels

Jun 29, 2024

jieyouxu

@petrochenkov

From looking at the code it's not clear how this may happen for --target=wasm32-wasip1, let's try again with some additional debugging.
@bors try

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

Jul 1, 2024

@bors

linker: Refactor interface for passing arguments to linker

Separate arguments into passed to the underlying linker, to cc wrapper, or supported by both. Also avoid allocations in all the argument passing functions.

The interfaces would look nicer if not the limitations on returning &mut Self in dyn-compatible traits, and unnecessary conflicts between Trait and dyn Trait methods.

try-job: test-various

@bors

@rust-log-analyzer

This comment has been minimized.

@bors

@petrochenkov

@petrochenkov

@petrochenkov

@bors

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

Jul 1, 2024

@bors

linker: Refactor interface for passing arguments to linker

Separate arguments into passed to the underlying linker, to cc wrapper, or supported by both. Also avoid allocations in all the argument passing functions.

The interfaces would look nicer if not the limitations on returning &mut Self in dyn-compatible traits, and unnecessary conflicts between Trait and dyn Trait methods.

try-job: armhf-gnu try-job: aarch64-gnu try-job: dist-x86_64-linux try-job: x86_64-msvc try-job: i686-msvc try-job: dist-x86_64-apple try-job: test-various

@bors

☀️ Try build successful - checks-actions
Build commit: 89280e1 (89280e16f1e6b7aaeebe74303dc6db3c4cdc7b20)

@petrochenkov

@bors

📌 Commit 5f9a0d3 has been approved by jieyouxu

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors

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

and removed S-waiting-on-author

Status: This is awaiting some action (such as code changes or more information) from the author.

labels

Jul 1, 2024

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

Jul 1, 2024

@bors

…llaumeGomez

Rollup of 8 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

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

Jul 1, 2024

@rust-timer

Rollup merge of rust-lang#126832 - petrochenkov:linkarg, r=jieyouxu

linker: Refactor interface for passing arguments to linker

Separate arguments into passed to the underlying linker, to cc wrapper, or supported by both. Also avoid allocations in all the argument passing functions.

The interfaces would look nicer if not the limitations on returning &mut Self in dyn-compatible traits, and unnecessary conflicts between Trait and dyn Trait methods.

try-job: armhf-gnu try-job: aarch64-gnu try-job: dist-x86_64-linux try-job: x86_64-msvc try-job: i686-msvc try-job: dist-x86_64-apple try-job: test-various

Labels

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.