Skip to content

Serialization: permit the directory layout on non-Apple targets #31860

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
May 19, 2020

Conversation

compnerd
Copy link
Member

Permit the directory style .swiftmodule on non-Apple targets. This
allows all platforms to use the directory layout enabling
multi-architecture SDKs. This not only unifies the layout of the SDK
across the various targets, it also enables Windows to have a single
unified SDK.

The complexity here is due to the compatibility for older layouts. This
change does not break compatibility on Linux/Android/Windows for the old
style layout.

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

Resolves SR-NNNN.

Permit the directory style `.swiftmodule` on non-Apple targets.  This
allows all platforms to use the directory layout enabling
multi-architecture SDKs.  This not only unifies the layout of the SDK
across the various targets, it also enables Windows to have a single
unified SDK.

The complexity here is due to the compatibility for older layouts.  This
change does not break compatibility on Linux/Android/Windows for the old
style layout.
@compnerd
Copy link
Member Author

CC: @DougGregor
As mentioned previously - this should allow us to unify the driver behaviour across the various platforms and enable multi-architecture SDKs on other platforms. I think that once this is done, this will also enable some additional cleanups in the Swift build system as well as allow for improvements to CMake to make it easier to integrate Swift modules into existing codebases.

@compnerd
Copy link
Member Author

@swift-ci please test

@DougGregor
Copy link
Member

LGTM!

@compnerd compnerd merged commit 84ff38f into swiftlang:master May 19, 2020
@compnerd compnerd deleted the directory-layout-unification branch June 23, 2023 02:07
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