[openmp] [llvm] [openmp][wasm] Allow compiling OpenMP to WebAssembly (PR #71297)

Jonathan Peyton via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 28 13:32:56 PST 2023


================
@@ -63,7 +63,15 @@
 #undef KMP_CANCEL_THREADS
 #endif
 
+// Some WASI targets (e.g., wasm32-wasi-threads) do not support thread
+// cancellation.
+#if defined(KMP_OS_WASI)
----------------
jpeyton52 wrote:

The `KMP_OS_WASI` macro is defined to either 0 or 1 so it should be
`#if KMP_OS_WASI` instead.

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


More information about the llvm-commits mailing list