Skip to content

[5.0] Driver: correct the registrar extension #21180

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 11, 2018

Conversation

compnerd
Copy link
Member

The object file extension on Windows is .obj rather than .o. Ensure
that we get the extension correct when compiling for Windows.
Furthermore, ensure that we install with the correct extension when
installing a cross-compiled image. As we may be using the homegrown
cross-compilation system, we must explicitly handle the extension
ourselves. This allows nearly a 100 additional tests to pass on
Windows.

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

Resolves SR-NNNN.

The object file extension on Windows is `.obj` rather than `.o`.  Ensure
that we get the extension correct when compiling for Windows.
Furthermore, ensure that we install with the correct extension when
installing a cross-compiled image.  As we may be using the homegrown
cross-compilation system, we must explicitly handle the extension
ourselves.  This allows nearly a 100 additional tests to pass on
Windows.
@compnerd compnerd requested a review from a team as a code owner December 10, 2018 19:40
@compnerd
Copy link
Member Author

@apple/swift5-branch-managers (@tkremenek) ... this is a low risk cherry-pick from master. It impacts only the windows target, fixing the file extension for image registration object when cross-compiling and running the driver for a windows target. There is no impact to the linux or Darwin targets.

@compnerd
Copy link
Member Author

@swift-ci please test

Copy link
Contributor

@bob-wilson bob-wilson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@compnerd
Copy link
Member Author

@bob-wilson/@tkremenek - could you merge this please?

@compnerd compnerd changed the title Driver: correct the registrar extension [5.0] Driver: correct the registrar extension Dec 11, 2018
@tkremenek tkremenek merged commit 8be4950 into swiftlang:swift-5.0-branch Dec 11, 2018
@compnerd compnerd deleted the cross-extensions branch December 11, 2018 21:21
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.

3 participants