Skip to content

Fixing post-swift-foundation corelibs-foundation static SDK builds #5060

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 3 commits into from
Aug 16, 2024

Conversation

etcwilde
Copy link
Contributor

@etcwilde etcwilde commented Aug 8, 2024

Putting back definitions and flags that were dropped when doing the Swift-Foundation re-core that are necessary when building for the static SDK. This is primarily checks for symbol availability.

Several definitions and flags were dropped from the build when moving to
swift-froundation.
This patch puts back the ones that we need in order to build against
musl.

Since the musl builds are static, we also need to pick up the link to
libRT or dispatch will fail to link.
This fixes how we pick up SOCK_STREAM and IPPROTO_TCP from musl. We
weren't before so it was just failing to build.
@etcwilde
Copy link
Contributor Author

etcwilde commented Aug 8, 2024

swiftlang/swift-foundation#838
@swift-ci please test

Add comment describing why we need to check for the availability of
strlcat/strlcpy and issetguid.

Also removed setting the _GNU_SOURCES compile-definition and
-fblocks flag as it's already added through one of the global variables.
@etcwilde
Copy link
Contributor Author

@swift-ci please test

@jmschonfeld
Copy link
Contributor

I don't have any remaining comments here, but since this is to the release/6.0 branch @itingliu will need to approve. @etcwilde do you have a PR open to main for this yet? Otherwise these changes won't make it to the next release.

@etcwilde
Copy link
Contributor Author

@swift-ci please test Windows Platform

@etcwilde etcwilde merged commit c48fff0 into swiftlang:release/6.0 Aug 16, 2024
2 of 3 checks passed
@etcwilde etcwilde deleted the ewilde/im-bringing-musl-back branch August 16, 2024 17: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.

4 participants