diff --git a/devel/onetbb/files/patch-cmake-compilers-Clang.cmake b/devel/onetbb/files/patch-cmake-compilers-Clang.cmake index bf6019201e2c..59fd4f11702b 100644 --- a/devel/onetbb/files/patch-cmake-compilers-Clang.cmake +++ b/devel/onetbb/files/patch-cmake-compilers-Clang.cmake @@ -1,13 +1,15 @@ -Fix amd64 build for 13-STABLE and 14-CURRENT (clang >= 12.0.1) +Fix build on 13-STABLE and 14-CURRENT + +See: https://github.com/oneapi-src/oneTBB/pull/614 --- cmake/compilers/Clang.cmake.orig 2021-10-04 09:50:18 UTC +++ cmake/compilers/Clang.cmake @@ -44,7 +44,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 "(x86|AMD64)") -+if (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86|AMD64|amd64)") ++if (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86|AMD64|amd64|i.86)") set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} -mrtm $<$>:-mwaitpkg>) endif()