circuitpython/ports/atmel-samd/mpconfigport.mk

13 lines
441 B
Makefile
Raw Normal View History

# Define an equivalent for MICROPY_LONGINT_IMPL, to pass to $(MPY-TOOL) in py/mkrules.mk
# $(MPY-TOOL) needs to know what kind of longint to use (if any) to freeze long integers.
# This should correspond to the MICROPY_LONGINT_IMPL definition in mpconfigport.h.
ifeq ($(CHIP_FAMILY), samd21)
MPY_TOOL_LONGINT_IMPL = -mlongint-impl=none
endif
2017-10-23 12:29:17 -04:00
ifeq ($(CHIP_FAMILY), samd51)
MPY_TOOL_LONGINT_IMPL = -mlongint-impl=mpz
endif
2017-10-23 12:29:17 -04:00
INTERNAL_LIBM = 1