Issue with Using pthread in WASM

Thank you for your reply! I was previously using MinGW, but after switching to Ninja, the issue was resolved.

Now I have another question related to WebGPU. I’d like to use both multithreading and WebGPU together. Following the discussion here: Problems when compilate VTK build for wasm - #4 by jaswantp, I integrated Demdawnwebgpu_DIR into my build, and then encountered the same error as before, which I suspect is due to the WebGPU build not being compiled with the -pthread flag.

–shared-memory is disallowed by webgpu.cpp.o because it was not compiled with ‘atomics’ or ‘bulk-memory’ features.

Is there a version of the webgpu that supports multithreading? Or is there any source code and guidance on how to build webgpu properly with multithreading support?

Thanks again for your help!