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

Support for musl targets #25

Closed
thedrow opened this issue Sep 10, 2019 · 3 comments
Closed

Support for musl targets #25

thedrow opened this issue Sep 10, 2019 · 3 comments

Comments

@thedrow
Copy link

thedrow commented Sep 10, 2019

As it turns out ctor is not supported on musl targets.
See PyO3/pyo3#599 for example.

Is it possible to implement this crate on musl?
I'm not entirely sure myself.
What do you think?

@mmastrac
Copy link
Owner

I believe that this crate would support musl if all the deps (proc_macro/etc) support musl, as we only use target_os:

#[cfg_attr(target_os = "linux", link_section = ".init_array")]

@thedrow
Copy link
Author

thedrow commented Sep 11, 2019

It seems that there is a problem with proc macros in general on musl and its not something you can fix for now.
See PyO3/pyo3#599 (comment)
Thanks anyway.

@mmastrac
Copy link
Owner

@thedrow I confirmed that it does work with musl, but you need to cross-compile. This worked on my mac:

cross run --frozen --target x86_64-unknown-linux-musl --example example

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

No branches or pull requests

2 participants