swift-server / swift-service-lifecycle

Cleanly startup and shutdown server application, freeing resources in order before exiting.
https://swiftpackageindex.com/swift-server/swift-service-lifecycle/documentation/servicelifecycle
Apache License 2.0
385 stars 37 forks source link

Support compiling against Musl #182

Closed simonjbeaumont closed 4 months ago

simonjbeaumont commented 4 months ago

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

Conditionally import Musl when present, just like we do for Glibc.

Result

Can compile against Musl.

FranzBusch commented 4 months ago

@swift-server-bot test this please