The combination of Yams and the Static Linux SDK allows the creation of a CLI in a single binary. To do this, the implementation needs to be changed from a direct dependency on Glibc to a dependency on both Glibc and Musl.
Here, import needs to be changed to support Musl.
#elseif canImport(Glibc)
import CoreFoundation
import Glibc
private let cpow: (_: Double, _: Double) -> Double = Glibc.pow
#elseif canImport(Musl)
import CoreFoundation
import Musl
private let cpow: (_: Double, _: Double) -> Double = Musl.pow
#endif
The combination of Yams and the Static Linux SDK allows the creation of a CLI in a single binary. To do this, the implementation needs to be changed from a direct dependency on Glibc to a dependency on both Glibc and Musl.
Here, import needs to be changed to support Musl.