Skip to content

build: repair the windows cross-compilation #21082

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 6, 2018

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented Dec 6, 2018

The SIMDOperators module was being added prior to SwiftOnoneSupport, which
resulted in the import library target for Windows not being setup prior to use.
As a result, we would link against the DLL rather than the import library which
is not supported (except as a MinGW hack in the binutils linker). Re-order the
registration to ensure that the target is setup already.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

The SIMDOperators module was being added prior to SwiftOnoneSupport, which
resulted in the import library target for Windows not being setup prior to use.
As a result, we would link against the DLL rather than the import library which
is not supported (except as a MinGW hack in the binutils linker).  Re-order the
registration to ensure that the target is setup already.
@compnerd
Copy link
Member Author

compnerd commented Dec 6, 2018

CC: @stephentyrone

@compnerd
Copy link
Member Author

compnerd commented Dec 6, 2018

@swift-ci please test and merge

@swift-ci swift-ci merged commit 9596624 into swiftlang:master Dec 6, 2018
@compnerd compnerd deleted the house-of-cards branch December 7, 2018 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants