TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS)) -O3
endif
-ifneq ($(findstring neon,$(CONFIG_TARGET_OPTIMIZATION)),)
- CMAKE_OPTIONS += \
- -DARMv8=ON
-endif
+CMAKE_OPTIONS += \
+ -DARMv8=$$$$(echo -e '\#ifdef __ARM_NEON__\nON\n\#else\nOFF\n\#endif' | $$(TARGET_CC) $$(TARGET_CFLAGS) -x c -E - | grep -xE 'ON|OFF')
define Build/InstallDev
mkdir -p $(1)/usr/include