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

Musl support #28

Open
vliegeois opened this issue Nov 18, 2024 · 1 comment
Open

Musl support #28

vliegeois opened this issue Nov 18, 2024 · 1 comment

Comments

@vliegeois
Copy link

With swift 6, one can create Static Linux SDK.
https://www.swift.org/documentation/articles/static-linux-getting-started.html

But, we need to change the direct dependency on GLibc to dependency on both Glibc and Musl.

So, in the different files TOMLArray.swift, TOMLTable.swift, ...:

#if canImport(Darwin)
	import Darwin.C
#elseif canImport(Glibc)
	import Glibc
#elseif canImport(Musl)
    import Musl
#elseif canImport(ucrt)
	import ucrt
#else
	#error("Unsupported Platform")
#endif
@LebJe
Copy link
Owner

LebJe commented Dec 6, 2024

Thanks for the suggestion! I'll create a PR for this and have it as part of the next minor release.

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

No branches or pull requests

2 participants