Disable neon.
authorPeter Michael Green <plugwash@raspbian.org>
Wed, 20 Sep 2023 14:03:25 +0000 (15:03 +0100)
committerRaspbian forward porter <root@raspbian.org>
Wed, 20 Sep 2023 14:03:25 +0000 (15:03 +0100)
Gbp-Pq: Name disable-neon

lib/CMakeLists.txt

index 09416e9f0bc418fadb01966912ef0f4a03b7bdca..4e39cd5e73dff90a2267ff4ca99a8bb2481ad700 100644 (file)
@@ -230,7 +230,8 @@ else(neon_compile_result)
     OVERRULE_ARCH(neonv8 "Compiler doesn't support NEON")
 endif(neon_compile_result)
 
-########################################################################
+OVERRULE_ARCH(neon "We don't want neon on raspbian")
+
 # implement overruling in the ORC case,
 # since ORC always passes flag detection
 ########################################################################
@@ -400,7 +401,7 @@ set(FULL_C_FLAGS "${CMAKE_C_FLAGS}" "${CMAKE_CXX_COMPILER_ARG1}")
 # set up the assembler flags and include the source files
 foreach(ARCH ${ASM_ARCHS_AVAILABLE})
   string(REGEX MATCH "${ARCH}" ASM_ARCH "${available_archs}")
-if( ASM_ARCH STREQUAL "neonv7" )
+if( ASM_ARCH STREQUAL "neonv7xxxxxxxxxx" )
   message(STATUS "---- Adding ASM files") # we always use ATT syntax
   message(STATUS "-- Detected neon architecture; enabling ASM")
   # architecture specific assembler flags are now set in the cmake toolchain file