Files
termux-packages/packages/libtbb/fix-arm-builds.patch
termux-pacman-bot 13ca1c9a42 fix(main/libtbb): builds for arm
The package was last bumped automatically but since builds were failing
for arm, the package was not uploaded to the repository.
2025-07-09 06:46:15 +00:00

12 lines
743 B
Diff

--- ./cmake/compilers/Clang.cmake.orig 2025-07-09 06:18:14.037201334 +0000
+++ ./cmake/compilers/Clang.cmake 2025-07-09 06:18:52.358249559 +0000
@@ -65,7 +65,7 @@
# 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|armv7-a")
set(TBB_LIB_COMPILE_FLAGS ${TBB_LIB_COMPILE_FLAGS} -fstack-clash-protection $<$<NOT:$<BOOL:${EMSCRIPTEN}>>:-fcf-protection=full>)
endif()