summaryrefslogtreecommitdiff
path: root/devel/onetbb/files/patch-cmake_compilers_Clang.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'devel/onetbb/files/patch-cmake_compilers_Clang.cmake')
-rw-r--r--devel/onetbb/files/patch-cmake_compilers_Clang.cmake11
1 files changed, 11 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..d0b891075a28
--- /dev/null
+++ b/devel/onetbb/files/patch-cmake_compilers_Clang.cmake
@@ -0,0 +1,11 @@
+--- cmake/compilers/Clang.cmake.orig 2025-07-17 17:44:20 UTC
++++ cmake/compilers/Clang.cmake
+@@ -65,7 +65,7 @@ set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAG
+ # Clang flags to prevent compiler from optimizing out security checks
+ set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} -Wformat -Wformat-security -Werror=format-security -fPIC $<$<NOT:$<BOOL:${EMSCRIPTEN}>>:-fstack-protector-strong>)
+
+-if (NOT APPLE AND NOT ANDROID_PLATFORM AND NOT CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64")
++if (NOT APPLE AND NOT ANDROID_PLATFORM AND NOT CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64" AND NOT CMAKE_SYSTEM_PROCESSOR MATCHES "powerpc")
+ set(TBB_LIB_COMPILE_FLAGS ${TBB_LIB_COMPILE_FLAGS} -fstack-clash-protection $<$<NOT:$<BOOL:${EMSCRIPTEN}>>:-fcf-protection=full>)
+ endif()
+