Skip to content

Conversation

@al45tair
Copy link
Contributor

@al45tair al45tair commented May 7, 2024

Mostly this just means adding Musl as a module dependency of various things and making sure that we build things for swift_static even if SWIFT_BUILD_STATIC_STDLIB isn't enabled.

There's also a slight difference in the declaration of memcmp(); musl's declaration is more like the one we have on Darwin.

rdar://123508245

al45tair added 5 commits May 7, 2024 20:31
Use the new `SWIFT_SDK_<sdk>_STATIC_LINKING_SUPPORTED` and
`_STATIC_ONLY` flags instead of hardcoding support for Linux
and WASI.

Also, use the `_LIB_SUBDIR` variable rather than lowercasing
the SDK.

rdar://123504757
This is really just about setting appropriate defaults (such as
making sure that the static Linux triple causes us to use lld).

rdar://123506306
We only need this for WASI and Glibc.

rdar://123506306
The backtracer and its build system need a couple of changes to make
them work with the new fully-static Linux support.

rdar://123507656
Mostly this just means adding `Musl` as a module dependency of various
things and making sure that we build things for `swift_static` even
if `SWIFT_BUILD_STATIC_STDLIB` isn't enabled.

There's also a slight difference in the declaration of `memcmp()`;
musl's declaration is more like the one we have on Darwin.

rdar://123508245
@al45tair al45tair added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.0 labels May 7, 2024
@al45tair al45tair requested a review from a team as a code owner May 7, 2024 20:17
@al45tair
Copy link
Contributor Author

al45tair commented May 7, 2024

@swift-ci Please test

@al45tair
Copy link
Contributor Author

al45tair commented May 7, 2024

Explanation: This updates the standard library build to support the new static Linux SDK.
Original PR: #71848
Risk: Low. Adds configuration for musl-based SDKs.
Reviewed by: @etcwilde
Resolves: rdar://123508245
Tests: Existing tests will exercise the build changes on existing platforms. There is no CI as yet for the static Linux SDK.

@al45tair al45tair merged commit 3322ce9 into swiftlang:release/6.0 May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🍒 release cherry pick Flag: Release branch cherry picks swift 6.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants