Do not use dlltool to create DLL Import Libraries for Windows#147274
Do not use dlltool to create DLL Import Libraries for Windows#147274jfgoog wants to merge 1 commit intorust-lang:mainfrom
Conversation
|
Some changes occurred in compiler/rustc_codegen_ssa These commits modify compiler targets. |
|
r? @davidtwco rustbot has assigned @davidtwco. Use |
| default_linker_libraries: bool = (false, parse_bool, [UNTRACKED], | ||
| "allow the linker to link its default libraries (default: no)"), | ||
| dlltool: Option<PathBuf> = (None, parse_opt_pathbuf, [UNTRACKED], | ||
| "import library generation tool (ignored except when targeting windows-gnu)"), |
There was a problem hiding this comment.
This is a stable option, so it can't be removed, only deprecated and ignored.
Yes. This change was suggested in the discussion on the bug report, but landing is uncertain and complicated. I wanted to send a change anyway as a concrete point of discussion. |
|
r? @wesleywiser |
|
|
|
☔ The latest upstream changes (presumably #147645) made this pull request unmergeable. Please resolve the merge conflicts. |
|
|
|
@wesleywiser Not Mati, but to follow up on the discussion earlier: I asked the MSYS2 folks and they've been packaging binutils 2.40 since 2023-02-03. It apparently actually shipped slightly earlier for Cygwin. For people cross-compiling using mingw toolchains, which we don't quite officially support anyway, well, Debian Bookworm released in 2023-06-10 with it, and we've already seen Debian Trixie. So the primary users of windows-gnu-type-stuff have been using this binutils for quite some time. |
I'll tackle the easy part first. This has zero impact on
Then there is the hard part (the one without Unblocking this would require declaring supported toolchains, waiting some grace period, performing the change, and finally dealing with the breakage. |
|
checking progress. @mati865 just to understand, is this (still) blocked on binutils? thanks for an update |
|
@apiraino it's fixed in binutils 2.40. Rust doesn't declare minimal supported version, so it's unclear how long should we wait before breaking compatibility with older tools. |
|
Thanks. Let's talk about this in the triage meeting on Zulip. Feel free to chime in if you have a bit of time :) |
|
I'm often present but today I'm out of home and won't be able to attend. |
|
We discussed this in today's compiler team triage meeting. The consensus from the meeting was that we're open to this change and thus, raising the minimum supported binutils version for the
|
Motivation and context: #147229