gentoo/dev-cpp/tbb/files/tbb-2021.9.0-ppc.patch
Alfredo Tupone ecf55b97f5
dev-cpp/tbb: during test on 32 bits lower task num
Closes: https://bugs.gentoo.org/936411
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
2026-04-04 22:29:36 +02:00

13 lines
614 B
Diff

--- a/cmake/compilers/GNU.cmake 2026-04-04 21:14:34.206944192 +0200
+++ b/cmake/compilers/GNU.cmake 2026-04-04 21:15:30.092303279 +0200
@@ -75,6 +75,9 @@
set(TBB_TEST_COMPILE_FLAGS ${TBB_TEST_COMPILE_FLAGS} -DTBB_TEST_LOW_WORKLOAD $<$<CONFIG:DEBUG>:-fPIE -mxgot>)
set(TBB_TEST_LINK_FLAGS ${TBB_TEST_LINK_FLAGS} $<$<CONFIG:DEBUG>:-pie>)
endif()
+if ("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "ppc")
+ set(TBB_TEST_COMPILE_FLAGS ${TBB_TEST_COMPILE_FLAGS} -DTBB_TEST_LOW_WORKLOAD)
+endif()
set(TBB_IPO_COMPILE_FLAGS $<$<NOT:$<CONFIG:Debug>>:-flto>)
set(TBB_IPO_LINK_FLAGS $<$<NOT:$<CONFIG:Debug>>:-flto>)