Skip to content

Add support to the compiler for musl and the LINUX_STATIC SDK. #71844

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
May 7, 2024

Conversation

al45tair
Copy link
Contributor

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

rdar://123506306

@al45tair
Copy link
Contributor Author

This sits on top of #71843.

@al45tair
Copy link
Contributor Author

(This definitely won't build without swiftlang/llvm-project#8256).

@al45tair
Copy link
Contributor Author

al45tair commented May 3, 2024

It's just these changes that need reviewing. The others are in other PRs upstream of this one.

al45tair added 3 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
@al45tair al45tair force-pushed the eng/PR-123506306 branch from 51553a6 to 978169f Compare May 7, 2024 15:49
@al45tair
Copy link
Contributor Author

al45tair commented May 7, 2024

@swift-ci Please smoke test

@al45tair al45tair merged commit da779ca into swiftlang:main May 7, 2024
3 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.

2 participants