You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Older versions of ld.bfd didn't properly support short import libraries as archive members like the builtin implementation of rustc generates. So we worked around this by using binutils dlltool, which produces the old import library format. We have now bumped the minimum supported ld.bfd version to one which properly handles them, so we can drop the dlltool usage. This makes cross-compilation a bit easier and removes a bunch of code in rustc.
So far, rustc used to pick whatever dlltool it could find in PATH, and fail if couldn't find it. The related argument -Cdlltool allows explicit choice of the dlltool binary.
For now -Cdlltool will still be respected if passed, but if not passed, no implicit dlltool will be used anymore.
Proposal
Older versions of ld.bfd didn't properly support short import libraries as archive members like the builtin implementation of rustc generates. So we worked around this by using binutils dlltool, which produces the old import library format. We have now bumped the minimum supported ld.bfd version to one which properly handles them, so we can drop the dlltool usage. This makes cross-compilation a bit easier and removes a bunch of code in rustc.
So far, rustc used to pick whatever dlltool it could find in PATH, and fail if couldn't find it. The related argument
-Cdlltoolallows explicit choice of the dlltool binary.For now
-Cdlltoolwill still be respected if passed, but if not passed, no implicit dlltool will be used anymore.This has been implemented in rust-lang/rust#161050.
Mentors or Reviewers
@mati865
Process
The main points of the Major Change Process are as follows:
@rustbot secondor kickoff a team FCP with@rfcbot fcp $RESOLUTION.You can read more about Major Change Proposals on forge.
Note
Concerns (0 active)
flagresolved in this commentManaged by
@rustbot—see help for details.