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 wasm32-unknown-unknown #378

Closed
pravdomil opened this issue Mar 4, 2019 · 3 comments
Closed

Support wasm32-unknown-unknown #378

pravdomil opened this issue Mar 4, 2019 · 3 comments

Comments

@pravdomil
Copy link
Contributor

Now I see only support for emscripten, is there any plan for supporting target wasm32-unknown-unknown?

https://github.com/alexcrichton/cc-rs/blob/9e57a2b0e922a96be5d28b1adf6e5fc41d5d762c/src/lib.rs#L1696

@alexcrichton
Copy link
Member

Ideally we would support this! The target, however, doesn't really have a C compiler because there's no real standard "sysroot" (currently) to actually compile C code against. The recently released clang 8.0 compiler though is the only one we'd also be compatible with on wasm32-unknown-unknown, so we could at least add that and rely on users to set the right CFLAGS to compile with the right headers/sysroot/etc

@pravdomil
Copy link
Contributor Author

I'll be happy to use clang 8 for it.

@tanis2000
Copy link

I'm facing a similar problem here servo/rust-stb-image#94 but I have no clue where the wasm32 sysroot lives. I'm on CLANG 8.0.0 so I suppose it actually supports compiling to wasm32 but without the correct sysroot it can't find stdio.h and such headers.

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

3 participants