SHA256
1
0
forked from clibs/tbb
Files
tbb/cf-prot.patch
Ben Greiner 96073c7806 Update to 2022.3.0
* [Preview] Introduced API for setting dynamic task dependencies
  in task_group. This allows successor tasks to execute only
  after all their predecessors have completed.
* Extended task_arena with API support for enqueuing functions
  into a task_group and waiting for the task_group to complete.
* Introduced API for setting and getting the assertion handler.
  This allows applications to set their own assertion handling
  functions.
Update cf-prot.patch, partially fixed upstream
Add tbb-python-setuptools.patch
* gh#uxlfoundation/oneTBB#1941
* replace setup.py direct call
2026-01-03 15:19:00 +01:00

24 lines
1.2 KiB
Diff

From: Jan Engelhardt <ej@inai.de>
Date: 2025-07-17 10:15:40.088500829 +0200
References: https://github.com/uxlfoundation/oneTBB/issues/1783
-fcf-prot: not supported on this target
[at least i586, armv7hl, ppc64le, s390x, probably also riscv64]
---
cmake/compilers/GNU.cmake | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: oneTBB-2022.3.0/cmake/compilers/GNU.cmake
===================================================================
--- oneTBB-2022.3.0.orig/cmake/compilers/GNU.cmake
+++ oneTBB-2022.3.0/cmake/compilers/GNU.cmake
@@ -123,7 +123,7 @@ endif ()
set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} -fno-strict-overflow -fno-delete-null-pointer-checks -fwrapv)
set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} -Wformat -Wformat-security -Werror=format-security
-fstack-protector-strong )
-if (CMAKE_SYSTEM_PROCESSOR MATCHES "(AMD64|amd64|i.86|x86)" AND NOT EMSCRIPTEN)
+if (FALSE)
set(TBB_LIB_COMPILE_FLAGS ${TBB_LIB_COMPILE_FLAGS} $<$<NOT:$<VERSION_LESS:${CMAKE_CXX_COMPILER_VERSION},8.0>>:-fcf-protection=full>)
endif ()
set(TBB_LIB_COMPILE_FLAGS ${TBB_LIB_COMPILE_FLAGS} $<$<NOT:$<VERSION_LESS:${CMAKE_CXX_COMPILER_VERSION},8.0>>:-fstack-clash-protection>)