summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mk/vars.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/mk/vars.mk b/mk/vars.mk
index 563806b44..82173db00 100644
--- a/mk/vars.mk
+++ b/mk/vars.mk
@@ -243,6 +243,10 @@ TARGET_CXXFLAGS+= -fno-unwind-tables -fno-asynchronous-unwind-tables
endif
ifeq ($(ADK_TARGET_ARCH_ARM),y)
+ifeq ($(ADK_TARGET_CPU_WITH_NEON),y)
+TARGET_CFLAGS+= -funsafe-math-optimizations
+TARGET_CXXFLAGS+= -funsafe-math-optimizations
+endif
ifeq ($(ADK_TARGET_ARCH_ARM_WITH_THUMB),y)
TARGET_CFLAGS+= -mthumb -Wa,-mimplicit-it=thumb
TARGET_CXXFLAGS+= -mthumb -Wa,-mimplicit-it=thumb