wasmerio / wasmer-go

🐹🕸️ WebAssembly runtime for Go
https://pkg.go.dev/github.com/wasmerio/wasmer-go
MIT License
2.82k stars 161 forks source link

How do I enable threads for my module? #371

Open alexpitsikoulis opened 1 year ago

alexpitsikoulis commented 1 year ago

Summary

I enabled threads and shared memory for my AssemblyScript module and it compiles fine, but when I try to use it in wasmer it says threads must be enabled. I can't seem to find any options for this. Am I missing something or is this a bug?

Additional details

My error: 2023/01/03 17:26:13 failed to create WASM module: Validation error: threads must be enabled for shared memories (at offset 112) exit status 1

Keeyuu commented 1 year ago

I can't seem to find any options for this panic: Validation error: threads must be enabled for shared memories (at offset 214)