Skip to content

Commit

Permalink
emscriptem 3.1.45+ doesn't support mrtm and waitpkg (#1271)
Browse files Browse the repository at this point in the history
WASM: build fails for Emscripten 3.1.45+
  • Loading branch information
JhaShweta1 authored Nov 27, 2023
1 parent f4629cc commit 8259efb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/compilers/Clang.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if (NOT TBB_STRICT AND COMMAND tbb_remove_compile_flag)
endif()

# Enable Intel(R) Transactional Synchronization Extensions (-mrtm) and WAITPKG instructions support (-mwaitpkg) on relevant processors
if (CMAKE_SYSTEM_PROCESSOR MATCHES "(AMD64|amd64|i.86|x86)")
if (CMAKE_SYSTEM_PROCESSOR MATCHES "(AMD64|amd64|i.86|x86)" AND NOT EMSCRIPTEN)
set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} -mrtm $<$<NOT:$<VERSION_LESS:${CMAKE_CXX_COMPILER_VERSION},12.0>>:-mwaitpkg>)
endif()

Expand Down

0 comments on commit 8259efb

Please sign in to comment.