aboutsummaryrefslogtreecommitdiff
path: root/devel/onetbb
diff options
context:
space:
mode:
authorGanael LAPLANCHE <martymac@FreeBSD.org>2021-10-12 14:07:13 +0000
committerGanael LAPLANCHE <martymac@FreeBSD.org>2021-10-12 14:08:07 +0000
commit5d7ca410044831cf4cbfb639fdead1feb9a69e3b (patch)
tree07c3aa9ceeb674def2207d226aa95f42eea0f854 /devel/onetbb
parent2bc3e6229febd07dd7f2980cb7065573d689a0f5 (diff)
downloadports-5d7ca410044831cf4cbfb639fdead1feb9a69e3b.tar.gz
ports-5d7ca410044831cf4cbfb639fdead1feb9a69e3b.zip
devel/onetbb: Fix build on 13-STABLE and 14-CURRENT (i386)
Diffstat (limited to 'devel/onetbb')
-rw-r--r--devel/onetbb/files/patch-cmake-compilers-Clang.cmake6
1 files changed, 4 insertions, 2 deletions
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,4 +1,6 @@
-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
@@ -7,7 +9,7 @@ Fix amd64 build for 13-STABLE and 14-CURRENT (clang >= 12.0.1)
# 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 $<$<NOT:$<VERSION_LESS:${CMAKE_CXX_COMPILER_VERSION},12.0>>:-mwaitpkg>)
endif()