Skip to content

[main] Get Swift-Foundation building against MUSL for Swift Static SDK #848

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
Aug 14, 2024

Conversation

etcwilde
Copy link
Contributor

Adding MUSL support to Swift-Foundation to get the Swift static SDK building again after the swift-corelibs-foundation recore.

Cherry-picked from 6.0: #838

@etcwilde
Copy link
Contributor Author

@swift-ci please test

Adding the missing musl imports to get FoundationEssentials building for
the Swift static SDKs again.

Also providing an option to disable building the macros. The macros
aren't necessary for building the library and will not be run as part of
the static SDK. No need to bloat the SDK or build times further. For
Swift 6, the macros should be provided by the toolchain since the
toolchain and SDK are current revlocked due to swiftmodules.
Adding the missing Musl imports to get FoundationInternationalization
building for the static SDK.
@etcwilde etcwilde force-pushed the ewilde/main-static-sdk-support branch from d9e4978 to 995fefb Compare August 14, 2024 18:18
@jmschonfeld
Copy link
Contributor

@swift-ci please test

@etcwilde etcwilde merged commit aecc1b1 into swiftlang:main Aug 14, 2024
3 checks passed
@etcwilde etcwilde deleted the ewilde/main-static-sdk-support branch August 14, 2024 20:34
cthielen pushed a commit to cthielen/swift-foundation that referenced this pull request Nov 8, 2024
swiftlang#848)

* Get FoundationEssentials building

Adding the missing musl imports to get FoundationEssentials building for
the Swift static SDKs again.

Also providing an option to disable building the macros. The macros
aren't necessary for building the library and will not be run as part of
the static SDK. No need to bloat the SDK or build times further. For
Swift 6, the macros should be provided by the toolchain since the
toolchain and SDK are current revlocked due to swiftmodules.

* Get FoundationInternationalization building

Adding the missing Musl imports to get FoundationInternationalization
building for the static SDK.
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