Skip to content

Commit b7cfafc

Browse files
committed
alif/alif.mk: Add MPY_CROSS_FLAGS setting.
The HP and HE CPUs have double-precision hardware floating point, so can use the armv7emdp architecture. This allows frozen code to use native/viper/asm_thumb decorators. Fixes issue micropython#17896. Signed-off-by: Damien George <damien@micropython.org>
1 parent f0f5abb commit b7cfafc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ports/alif/alif.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ include $(TOP)/extmod/extmod.mk
2222
################################################################################
2323
# Project specific settings and compiler/linker flags
2424

25+
MPY_CROSS_FLAGS += -march=armv7emdp
26+
2527
CROSS_COMPILE ?= arm-none-eabi-
2628
ALIF_DFP_REL_TOP ?= lib/alif_ensemble-cmsis-dfp
2729
ALIF_DFP_REL_HERE ?= $(TOP)/lib/alif_ensemble-cmsis-dfp

0 commit comments

Comments
 (0)