postgres-nio icon indicating copy to clipboard operation
postgres-nio copied to clipboard

Can you please add Musl to cross compile?

Open jasonjurotich opened this issue 1 year ago • 4 comments

Apple is saying here that they are going to use Musl for cross compiling... can you add it please? Thanks https://www.swift.org/documentation/articles/static-linux-getting-started.html

#if os(macOS) || os(iOS) import Darwin #elseif canImport(Glibc) import Glibc #elseif canImport(Musl) import Musl #elseif os(Windows) import ucrt #else #error(Unknown platform) #endif

jasonjurotich avatar Jul 01 '24 22:07 jasonjurotich

It seems there are only three places where we import Glibc, and only two of them need changes? Screenshot 2024-07-02 at 02 17 49

MihaelIsaev avatar Jul 01 '24 22:07 MihaelIsaev

yes, but principally here: postgres-nio/Sources/ConnectionPoolModule/PoolStateMachine.swift:4:8: error: no such module 'Glibc'

jasonjurotich avatar Jul 01 '24 22:07 jasonjurotich

hello, just wanted to know if this was added yet... I had to clone this weeks ago to add it myself while waiting. Thanks!

jasonjurotich avatar Aug 20 '24 23:08 jasonjurotich

hello, just wanted to know if this was added yet... I had to clone this weeks ago to add it myself while waiting. Thanks!

Why not open a Pull request with your patch? @jasonjurotich

thoven87 avatar Aug 20 '24 23:08 thoven87