Skip to content

Conversation

@al45tair
Copy link
Contributor

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
Copy link
Contributor Author

This sits on top of #71847.

@al45tair
Copy link
Contributor Author

al45tair commented May 3, 2024

It's just this one changeset that needs reviewing here. The other changes come from upstream PRs that are being reviewed by others and that have already been updated, so please don't waste time looking at those.

al45tair added 5 commits May 7, 2024 16:45
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 force-pushed the eng/PR-123508245 branch from 8f4a746 to 0fa5e65 Compare May 7, 2024 15:56
@al45tair
Copy link
Contributor Author

al45tair commented May 7, 2024

@swift-ci Please smoke test

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