[Openmp-commits] [llvm] [openmp] [openmp][WebAssembly] Allow openmp to compile and run under emscripten toolchain (PR #95169)

via Openmp-commits openmp-commits at lists.llvm.org
Tue Dec 16 08:30:58 PST 2025


arsnyder16 wrote:

@JAicewizard Are you compiling under wasm32? It should be getting set here 
https://github.com/llvm/llvm-project/blob/a3b3c027bb61f5275087335cf2c9b1cfe4ac9768/openmp/runtime/src/kmp_platform.h#L248

Seems like a linker problem you have? Make sure you are compiling with `-fopenmp=libomp` and linking to the `libomp.a` generated.

Just a side note, i actually apply an additional patch to llvm when compiling openmp with emscripten. I don't know if its related or not 
[wasm.patch](https://github.com/user-attachments/files/24195761/wasm.patch)



https://github.com/llvm/llvm-project/pull/95169


More information about the Openmp-commits mailing list