Closed as not planned
Description
When compiling to wasm32-wasi
, libc
does not include some emulated wasi-libc
functions like mmap
. When using wasi-libc
directly, you can set some extra parameters to enable these emulated functions like:
-D_WASI_EMULATED_MMAN # for clang
-lwasi-emulated-mman # for lld
What would be the appropriate fix for this? I was hoping a cargo feature or something similar could solve the problem. I am a bit new here, so if I could get some guidance I would be happy to PR to supply these additions. (I see that changes would be needed for https://github.com/rust-lang/libc/blob/master/src/wasi.rs, but I am not sure what would need to change in build.rs or elsewhere to accommodate this.)