Skip to content

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