Stop using dlltool for generating import libraries on MinGW#157712
Stop using dlltool for generating import libraries on MinGW#157712bjorn3 wants to merge 1 commit into
Conversation
064b8e5 to
b5d891b
Compare
b5d891b to
a17a3d2
Compare
This comment has been minimized.
This comment has been minimized.
a17a3d2 to
3cbb918
Compare
This comment has been minimized.
This comment has been minimized.
3cbb918 to
adca83a
Compare
This comment has been minimized.
This comment has been minimized.
adca83a to
4fa01bb
Compare
This comment has been minimized.
This comment has been minimized.
Older versions of ld.bfd didn't support short import libraries 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 does support them, so we can drop the dlltool usage. This makes cross-compilation a bit easier and removes a bunch of code in rustc.
4fa01bb to
238a0fd
Compare
|
These commits modify compiler targets. Some changes occurred in src/tools/compiletest cc @jieyouxu
|
|
r? @TaKO8Ki rustbot has assigned @TaKO8Ki. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
cc @mati865 |
|
I think the consensus on Zulip was that we want to hold back the breaking changes until next release after the bump. To give the time for updating. |
Well, they did but with caveats. Like, it broke when import libs were put inside archive like staticlib/rlib. |
|
My bad. Let's wait for beta to branch then. @rustbot author |
Older versions of ld.bfd didn't support short import libraries 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 (TODO) the minimum supported ld.bfd version to one which does support them, so we can drop the dlltool usage. This makes cross-compilation a bit easier and removes a bunch of code in rustc.
Blocked on updating the required binutils version.