Skip to content

Improve flags handling for Windows build #1831

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 2 commits into from
Jan 18, 2019
Merged

Conversation

compnerd
Copy link
Member

Update the flags handling to enable building for the Windows target which does not support -rpath and requires an indication that the shared C library is being used.

The rpath handling uses linker flags specific to the ELF linkers.  This
is in preparation to build for Windows which does does not have the
concept of `DT_RPATH`.
Adjust the CFLAGS to indicate that the shared CRT is used since we do
not support the static CRT as that makes the DLL unusable with other
executables as the shared and static CRT cannot be mixed in a single
address space.  The flag itself does not collide on other targets (at
least currently).  If necessary, that can be made target dependent.
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

@swift-ci please test Linux platform

@compnerd compnerd merged commit b8888e5 into swiftlang:master Jan 18, 2019
@compnerd compnerd deleted the flags branch January 18, 2019 16:46
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.

1 participant