Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you please add Musl to cross compile? #491

Open
jasonjurotich opened this issue Jul 1, 2024 · 4 comments
Open

Can you please add Musl to cross compile? #491

jasonjurotich opened this issue Jul 1, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@jasonjurotich
Copy link

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 jasonjurotich added the enhancement New feature or request label Jul 1, 2024
@MihaelIsaev
Copy link
Member

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

@jasonjurotich
Copy link
Author

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

@jasonjurotich
Copy link
Author

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

@thoven87
Copy link

thoven87 commented Aug 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants