2017-07-15 17:03:24 -04:00
|
|
|
# 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.
|
2018-05-21 23:58:03 -04:00
|
|
|
|
2018-05-22 08:04:14 -04:00
|
|
|
ifeq ($(LONGINT_IMPL),NONE)
|
2017-07-15 17:03:24 -04:00
|
|
|
MPY_TOOL_LONGINT_IMPL = -mlongint-impl=none
|
2017-10-31 18:46:42 -04:00
|
|
|
endif
|
2017-10-23 12:29:17 -04:00
|
|
|
|
2018-05-22 08:04:14 -04:00
|
|
|
ifeq ($(LONGINT_IMPL),MPZ)
|
2017-10-31 18:46:42 -04:00
|
|
|
MPY_TOOL_LONGINT_IMPL = -mlongint-impl=mpz
|
|
|
|
endif
|
2017-10-23 12:29:17 -04:00
|
|
|
|
2018-05-22 09:35:29 -04:00
|
|
|
ifeq ($(LONGINT_IMPL),LONGLONG)
|
2018-05-21 23:58:03 -04:00
|
|
|
MPY_TOOL_LONGINT_IMPL = -mlongint-impl=longlong
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2017-10-31 18:46:42 -04:00
|
|
|
INTERNAL_LIBM = 1
|