Closed whitequark closed 4 months ago
Thanks for identifying this issue! The responsible code here is the wit-component
crate, which is getting invoked by jco as a component binary (!). can you please refile here https://github.com/bytecodealliance/wasm-tools/issues as "wit-component
should accept modules with shared memories" and we can work out how we can resolve this.
@pchickey Done, and closing this in favor of https://github.com/bytecodealliance/wasm-tools/issues/1674.
which is getting invoked by jco as a component binary (!)
I find this arrangement very clever and I admire it from a technical elegance point of view, but it definitely makes contribution more difficult at times...
To reproduce:
This example is extracted from a larger project (YoWASP Clang). LLVM currently does not compile for the
wasm32-wasip1
target (it requireswasm32-wasip1-threads
) because it extensively uses atomics even in a single-threaded build. This is difficult to change. However, an LTO build of LLVM/Clang/LLD (with the WebAssembly patchset that's likely going to be accepted in near future) doesn't importthread.spawn
and so doesn't need to be treated differently.Should this restriction be relaxed in jco?