Skip to content

Commit

Permalink
ports/{stm32,esp8266}: Set mpy-cross native arch for frozen native code.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgeorge committed Mar 14, 2019
1 parent 5a6026c commit c7d19dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ports/esp8266/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ COPT += -Os -DNDEBUG
LDFLAGS += --gc-sections
endif

# Options for mpy-cross
MPY_CROSS_FLAGS += -march=xtensa

SRC_C = \
strtoll.c \
main.c \
Expand Down
3 changes: 3 additions & 0 deletions ports/stm32/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ else
COPT += -Os -DNDEBUG
endif

# Options for mpy-cross
MPY_CROSS_FLAGS += -march=armv7m

SRC_LIB = $(addprefix lib/,\
libc/string0.c \
oofatfs/ff.c \
Expand Down

0 comments on commit c7d19dc

Please sign in to comment.