Disable neon, it does not appear to be correctly behind runtime CPU detection.
authorPeter Michael Green <plugwash@raspbian.org>
Thu, 7 Jul 2022 14:48:19 +0000 (15:48 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Thu, 7 Jul 2022 14:48:19 +0000 (15:48 +0100)
Gbp-Pq: Name disable-neon.patch

cmake/modules/FindCPUflags.cmake

index 802d1cc0346a30729f21211922182c2f9971eb6a..cdfab36c10e98ee3df0db03e05250aa8a5cc0035 100644 (file)
@@ -356,17 +356,17 @@ elseif(ARCHITECTURE_ARM)
     else()
         try_run(RUN_NEON COMPILE_NEON "${CMAKE_BINARY_DIR}/tmp" "${TEST_DIR}/test_arm_neon.cxx" COMPILE_DEFINITIONS -mfpu=neon -O0)
     endif()
-    if(COMPILE_NEON AND RUN_NEON EQUAL 0)
-       set(HAS_NEON ON CACHE BOOL "Architecture has NEON SIMD enabled")
-       message(STATUS "Use NEON SIMD instructions")
-       if(C_GCC OR C_CLANG)
-           set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfpu=neon" )
-           set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfpu=neon" )
-           add_definitions(-DUSE_NEON)
-       endif()
-    else()
+    #if(COMPILE_NEON AND RUN_NEON EQUAL 0)
+    #   set(HAS_NEON ON CACHE BOOL "Architecture has NEON SIMD enabled")
+    #   message(STATUS "Use NEON SIMD instructions")
+    #   if(C_GCC OR C_CLANG)
+    #       set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfpu=neon" )
+    #       set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfpu=neon" )
+    #       add_definitions(-DUSE_NEON)
+    #   endif()
+    #else()
        set(HAS_NEON OFF CACHE BOOL "Architecture does not have NEON SIMD enabled")
-    endif()
+    #endif()
 elseif(ARCHITECTURE_ARM64)
     # Advanced SIMD (aka NEON) is mandatory for AArch64
     set(HAS_NEON ON CACHE BOOL "Architecture has NEON SIMD enabled")