Commit 66a36d5660a142521212dd59c781414f3d4989be

Ryan C. Gordon 2016-11-17T01:34:18

cpuinfo: disable NEON detection on Android for now. Will fix this properly soon.

diff --git a/src/cpuinfo/SDL_cpuinfo.c b/src/cpuinfo/SDL_cpuinfo.c
index a3ea355..38aa633 100644
--- a/src/cpuinfo/SDL_cpuinfo.c
+++ b/src/cpuinfo/SDL_cpuinfo.c
@@ -50,9 +50,11 @@
 #include <setjmp.h>
 #endif
 
+#if 0  /* !!! FIXME */
 #if defined(__ANDROID__) && defined(__ARM_ARCH)
 #include <cpu-features.h>
 #endif
+#endif
 
 #if defined(__LINUX__) && defined(__ARM_ARCH) && HAVE_GETAUXVAL
 #include <sys/auxv.h>
@@ -312,7 +314,7 @@ CPU_haveNEON(void)
     const int error = sysctlbyname("hw.optional.neon", &neon, &length, NULL, 0);
     if (!error)
         neon = (neon != 0);
-#elif defined(__ANDROID__) && defined(__ARM_ARCH)
+#elif 0 && defined(__ANDROID__) && defined(__ARM_ARCH)  /* !!! FIXME */
     if ( (android_getCpuFamily() == ANDROID_CPU_FAMILY_ARM) &&
          ((android_getCpuFeatures() & ANDROID_CPU_ARM_FEATURE_NEON) != 0) ) {
         neon = 1;