Skip to content

Conversation

@petrochenkov
Copy link
Contributor

It is subsumed by -Clinker-flavor=*-lld-cc -Clink-self-contained=+linker options now.

r? @lqd

@rustbot rustbot added A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-release Relevant to the release subteam, which will review and decide on the PR/issue. labels Oct 7, 2023
Copy link
Member

@lqd lqd left a comment

Choose a reason for hiding this comment

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

r=me with the 2 nits fixed.

As well as:

@lqd
Copy link
Member

lqd commented Oct 7, 2023

(GH UI doing a poor job at showing review comments without duplicates ...)

It is subsumed by `-Clinker-flavor=*-lld-cc -Clink-self-contained=+linker` options now
@petrochenkov
Copy link
Contributor Author

@bors r=lqd

@bors
Copy link
Collaborator

bors commented Oct 8, 2023

📌 Commit b563595 has been approved by lqd

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-review Status: Awaiting review from the assignee but also interested parties. labels Oct 8, 2023
@bors
Copy link
Collaborator

bors commented Oct 8, 2023

⌛ Testing commit b563595 with merge ab039f7...

@bors
Copy link
Collaborator

bors commented Oct 8, 2023

☀️ Test successful - checks-actions
Approved by: lqd
Pushing ab039f7 to master...

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (ab039f7): comparison URL.

Overall result: no relevant changes - no action needed

@rustbot label: -perf-regression

Instruction count

This benchmark run did not return any relevant results for this metric.

Max RSS (memory usage)

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-1.2% [-1.2%, -1.2%] 2
All ❌✅ (primary) - - 0

Cycles

This benchmark run did not return any relevant results for this metric.

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 624.124s -> 621.59s (-0.41%)
Artifact size: 270.68 MiB -> 270.70 MiB (0.01%)

@AlexTMjugador
Copy link

AlexTMjugador commented Dec 8, 2023

Was this unstable option really subsumed by the -Clinker-flavor=*-lld-cc -Clink-self-contained=+linker flags, though?

The combination of -Clinker=aarch64-linux-gnu-gcc -Clinker-flavor=gnu-lld-cc does not seem to work today (rustc 1.76.0-nightly (503e12932 2023-12-07)) to use a cross-compiling linker with LLD, and previously -Zgcc-ld=lld was a way to tackle rust-lang/rustup#3324 (see also #89626 (comment)).

Edit: it appears my issue is a bit more complex than it looks at a first glance (I'm debugging recent CI build issues at https://github.com/OptiVorbis/OptiVorbis/actions/runs/7120629253/job/19388265619). When using these flags through cargo build, the linker invocation as shown by --print link-args looks fine. But the same flags under cargo test cause the system cc linker to be used instead. Maybe this is related to using Cargo's -Zdoctest-xcompile? In any case, I don't think this is related to this change after some investigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-testsuite Area: The testsuite used to check the correctness of rustc merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-release Relevant to the release subteam, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants