Uh oh!
There was an error while loading. Please reload this page.
Fix rust.use-lld when linker is not set - #76326
Conversation
rust-highfive
commented
Sep 4, 2020
(rust_highfive has picked a reviewer for you, use r? to override) |
mati865
commented
Sep 4, 2020
Mark-Simulacrum
commented
Sep 4, 2020
I wonder if we should be warning folks if they do set use-lld and then we are just basically ignoring that. |
mati865
commented
Sep 4, 2020
@Mark-Simulacrum Since #75111 |
Mark-Simulacrum
commented
Sep 4, 2020
Ah right, okay, makes sense. I'm going to @bors r+ this then, but we can back out if people disagree. It sounds like the right thing. |
bors
commented
Sep 4, 2020
📌 Commit a2fbf39 has been approved by |
petrochenkov
commented
Sep 4, 2020
I can confirm that hangs in #76127 (comment) occur in winpthreads, and that rust-lld shipped with rustc was used, and this PR fixes that. The fix however causes an error during linking which is very strange because |
mati865
commented
Sep 4, 2020
@petrochenkov at which stage? |
petrochenkov
commented
Sep 4, 2020
Ha, maybe! |
I cannot test it right now but sounds like this could be fixed when #76167 lands in bootstrap compiler. |
petrochenkov
commented
Sep 4, 2020
This is indeed the reason, the ancient |
We need an external toolchain for UPD: We have our own |
petrochenkov
commented
Sep 4, 2020
(Anyway, the local workaround of nuking works.) |
petrochenkov
commented
Sep 4, 2020
Full |
mati865
commented
Sep 4, 2020
|
…imulacrum Fix rust.use-lld when linker is not set Fixesrust-lang#76127 (comment) Previously when `[<target>].linker` was not configured `rust.use-lld` would set it to `rust-lld` on platforms where it should not.
petrochenkov
commented
Sep 5, 2020
The |
…imulacrum Fix rust.use-lld when linker is not set Fixesrust-lang#76127 (comment) Previously when `[<target>].linker` was not configured `rust.use-lld` would set it to `rust-lld` on platforms where it should not.
bors
commented
Sep 6, 2020
bors
commented
Sep 6, 2020
☀️ Test successful - checks-actions, checks-azure |
…lacrum rustbuild: Do not use `rust-mingw` component when bootstrapping windows-gnu targets Addresses rust-lang#76326 (comment) (ancient `x86_64-w64-mingw32-gcc` is selected as a linker wrapper, which is not usable in `use_lld=true` mode). Perhaps the comment about incompatible mingw was true in the past, but many things changed since then. With this change I was able to build everything successfully locally using a newer mingw toolchain, if it passes through the older toolchain on CI, then it should be good, I think.
Fixes#76127 (comment)
Previously when
[<target>].linkerwas not configuredrust.use-lldwould set it torust-lldon platforms where it should not.