Skip to content

Commit 7c921b8

Browse files
committed
spresense: Define LONGINT_IMPL as MPZ
1 parent f9d2163 commit 7c921b8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ports/cxd56/mpconfigport.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,14 @@ USB_MSC_EP_NUM_IN = 4
1010
# Number of USB endpoint pairs.
1111
USB_NUM_EP = 6
1212

13+
# Define an equivalent for MICROPY_LONGINT_IMPL, to pass to $(MPY-TOOL) in py/mkrules.mk
14+
# $(MPY-TOOL) needs to know what kind of longint to use (if any) to freeze long integers.
15+
# This should correspond to the MICROPY_LONGINT_IMPL definition in mpconfigport.h.
1316
MPY_TOOL_LONGINT_IMPL = -mlongint-impl=mpz
1417

18+
# Longints can be implemented as mpz, as longlong, or not
19+
LONGINT_IMPL = MPZ
20+
1521
CIRCUITPY_AUDIOBUSIO = 0
1622
CIRCUITPY_AUDIOIO = 0
1723
CIRCUITPY_CAMERA = 1

0 commit comments

Comments
 (0)