Skip to content

Musl support #28

@vliegeois

Description

@vliegeois

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions