aboutsummaryrefslogtreecommitdiff
path: root/devel/onetbb
diff options
context:
space:
mode:
authorGanael LAPLANCHE <martymac@FreeBSD.org>2021-10-11 14:31:14 +0000
committerGanael LAPLANCHE <martymac@FreeBSD.org>2021-10-11 14:31:14 +0000
commitbe58a139c5451153fe809c4c23e3184809786200 (patch)
treea2f492ce9bcd0a64266e49b367a1eceb9b408059 /devel/onetbb
parentb4fb4468ba3f0ab65a97b09b0e17871962a675b3 (diff)
downloadports-be58a139c5451153fe809c4c23e3184809786200.tar.gz
ports-be58a139c5451153fe809c4c23e3184809786200.zip
devel/onetbb: Fix amd64 build for 13-STABLE and 14-CURRENT
PR: 259051 Reported by: transitive@gmail.com
Diffstat (limited to 'devel/onetbb')
-rw-r--r--devel/onetbb/files/patch-cmake-compilers-Clang.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/devel/onetbb/files/patch-cmake-compilers-Clang.cmake b/devel/onetbb/files/patch-cmake-compilers-Clang.cmake
new file mode 100644
index 000000000000..bf6019201e2c
--- /dev/null
+++ b/devel/onetbb/files/patch-cmake-compilers-Clang.cmake
@@ -0,0 +1,13 @@
+Fix amd64 build for 13-STABLE and 14-CURRENT (clang >= 12.0.1)
+
+--- 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)")
+ set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} -mrtm $<$<NOT:$<VERSION_LESS:${CMAKE_CXX_COMPILER_VERSION},12.0>>:-mwaitpkg>)
+ endif()
+