Closed simonjbeaumont closed 6 months ago
When building for Linux, we would like to be able to build this package on top of Musl, as well as the usual Glibc.
Replace imports of Glibc with conditional imports using the following pattern:
- import Glibc + #if canImport(Glibc) + import Glibc + #elseif canImport(Musl) + import Musl + #else + #error("Unsupported runtime") + #endif
Can compile against Musl.
@swift-server-bot test this please
Thank you!
Motivation
When building for Linux, we would like to be able to build this package on top of Musl, as well as the usual Glibc.
Modifications
Replace imports of Glibc with conditional imports using the following pattern:
Result
Can compile against Musl.