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

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


================
@@ -151,14 +151,17 @@ if(CMAKE_C_COMPILER_ID STREQUAL "Intel" OR CMAKE_C_COMPILER_ID STREQUAL "IntelLL
 endif()
 
 # Checking Threading requirements
-find_package(Threads REQUIRED)
-if(WIN32)
-  if(NOT CMAKE_USE_WIN32_THREADS_INIT)
-    libomp_error_say("Need Win32 thread interface on Windows.")
-  endif()
-else()
-  if(NOT CMAKE_USE_PTHREADS_INIT)
-    libomp_error_say("Need pthread interface on Unix-like systems.")
+message(STATUS "WASM=${WASM}")
+if (NOT WASM)
----------------
jpeyton52 wrote:

Can you add a comment here about which threading model is being assumed for WASM.

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


More information about the Openmp-commits mailing list