Skip to content
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

Add support for Musl libc #423

Merged
merged 1 commit into from
Jun 22, 2023
Merged

Add support for Musl libc #423

merged 1 commit into from
Jun 22, 2023

Conversation

MaxDesiatov
Copy link
Contributor

Since Musl is sufficiently different from Glibc (see https://wiki.musl-libc.org/functional-differences-from-glibc.html), it requires a different import, which now should be applied to files that have import Glibc in them.

Since Musl is sufficiently different from Glibc (see https://wiki.musl-libc.org/functional-differences-from-glibc.html), it requires a different import, which now should be applied to files that have `import Glibc` in them.
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@@ -8,6 +8,8 @@
See http://swift.org/CONTRIBUTORS.txt for Swift project authors
*/

#if !canImport(Musl)

import TSCLibc
import TSCBasic

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Declarations in this file are deprecated and we're not going to use them when building for Musl.

@MaxDesiatov MaxDesiatov enabled auto-merge (squash) June 22, 2023 17:20
@MaxDesiatov MaxDesiatov merged commit 33ae5ab into main Jun 22, 2023
@MaxDesiatov MaxDesiatov deleted the maxd/canimport-musl branch June 22, 2023 17:38
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