-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustc_target: Add convenience functions for adding linker arguments #98212
Conversation
r? @estebank (rust-highfive has picked a reviewer for you, use r? to override) |
|
r? @lqd |
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great to me, cleaner and more efficient.
I left a couple questions, and apart from the pre-link args in wasm32-unknown-emscripten
, r=me after rebase.
@rustbot author |
066a9df
to
f9e5d3b
Compare
Updated. |
@bors r+ rollup=never (so that it's easy to bisect in case we missed something) |
📌 Commit f9e5d3b0327f8c71cbcb2634637b2bae0420595f has been approved by |
⌛ Testing commit f9e5d3b0327f8c71cbcb2634637b2bae0420595f with merge a0fc6e6516067988f123936386264e7a9b654e11... |
This comment was marked as resolved.
This comment was marked as resolved.
GH network issues |
This comment was marked as resolved.
This comment was marked as resolved.
f9e5d3b
to
ad2c361
Compare
@bors r=lqd |
📌 Commit ad2c36197a5c24e8398f097b1d9dcd19e27fe6a7 has been approved by |
This comment was marked as resolved.
This comment was marked as resolved.
ad2c361
to
8a9bef0
Compare
@bors r=lqd |
📌 Commit 8a9bef063ddd4c0b68c94a7f489310433e35c9aa has been approved by |
This comment was marked as resolved.
This comment was marked as resolved.
They ensure that lld and non-lld linker flavors get the same set of arguments
8a9bef0
to
456f65e
Compare
@bors r=lqd |
📌 Commit 456f65e has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (221bdb6): comparison url. Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results
CyclesResults
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression Footnotes |
They ensure that lld and non-lld linker flavors get the same set of arguments.
The second commit also adds some tests checking for linker argument inconsistencies, and tweaks some arguments to fix those inconsistencies.