Skip to content

[Build] Make sure we declare LINUX_STATIC dependencies on Musl. #76980

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

Conversation

al45tair
Copy link
Contributor

Everywhere there's a SWIFT_MODULE_DEPENDS_LINUX Glibc, there should be a corresponding SWIFT_MODULE_DEPENDS_LINUX_STATIC Musl.

This usually won't bite us, depending on build order and parallelism, but I hit one of these yesterday so went looking to see if there were any others.

rdar://136208589

Everywhere there's a `SWIFT_MODULE_DEPENDS_LINUX Glibc`, there should be
a corresponding `SWIFT_MODULE_DEPENDS_LINUX_STATIC Musl`.

This usually won't bite us, depending on build order and parallelism, but
I hit one of these yesterday so went looking to see if there were any
others.

rdar://136208589
@al45tair al45tair requested a review from a team as a code owner October 11, 2024 16:59
@al45tair
Copy link
Contributor Author

Explanation: There are missing dependencies that make the Swift Static SDK build unreliable (because sometimes it might try to build something without having built the Musl module yet, which results in strange errors about missing types or functions).
Risk: Basically none. These only affect the Static SDK build.
Original PR: #76542
Reviewed by: TBC
Resolves: rdar://136208589
Tests: PR testing should prove this doesn't affect anything else. Otherwise, the Static SDK build should be more reliable.

@al45tair
Copy link
Contributor Author

This is a cherry pick of #76977

@al45tair
Copy link
Contributor Author

@swift-ci Please test

@shahmishal shahmishal merged commit 6968202 into swiftlang:release/6.0.2 Oct 14, 2024
5 checks passed
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