Skip to content

Stop using dlltool for generating import libraries on MinGW #1029

Description

@bjorn3

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 -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.

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:

  • File an issue describing the proposal.
  • A compiler team member who is knowledgeable in the area can second by writing @rustbot second or kickoff a team FCP with @rfcbot fcp $RESOLUTION.
  • Once an MCP is seconded, the Final Comment Period begins.
    • Final Comment Period lasts for 10 days after all outstanding concerns are solved.
    • Outstanding concerns will block the Final Comment Period from finishing. Once all concerns are resolved, the 10 day countdown is restarted.
    • If no concerns are raised after 10 days since the resolution of the last outstanding concern, the MCP is considered approved.

You can read more about Major Change Proposals on forge.

Note

Concerns (0 active)

Managed by @rustbot—see help for details.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-compilerAdd this label so rfcbot knows to poll the compiler teammajor-changeA proposal to make a major change to rustcmajor-change-acceptedA major change proposal that was accepted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions