tesseract: check for __ANDROID__ instead of ANDROID in simddetect
And avoid android_getCpuFamily() for termux.
This commit is contained in:
parent
5e2c4e9bb5
commit
3783ea8c4f
20
packages/tesseract/src-arch-simddetect.cpp.patch
Normal file
20
packages/tesseract/src-arch-simddetect.cpp.patch
Normal file
@ -0,0 +1,20 @@
|
||||
--- ../simddetect.cpp.orig 2021-11-09 11:24:40.301011146 +0100
|
||||
+++ ./src/arch/simddetect.cpp 2021-11-09 11:25:03.524897388 +0100
|
||||
@@ -53,7 +53,7 @@
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_NEON) && !defined(__aarch64__)
|
||||
-# ifdef ANDROID
|
||||
+# if defined(__ANDROID__) && !defined(__TERMUX__)
|
||||
# include <cpu-features.h>
|
||||
# else
|
||||
/* Assume linux */
|
||||
@@ -210,7 +210,7 @@
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_NEON) && !defined(__aarch64__)
|
||||
-# ifdef ANDROID
|
||||
+# if defined(__ANDROID__) && !defined(__TERMUX__)
|
||||
{
|
||||
AndroidCpuFamily family = android_getCpuFamily();
|
||||
if (family == ANDROID_CPU_FAMILY_ARM)
|
Loading…
Reference in New Issue
Block a user