summaryrefslogtreecommitdiff
path: root/ports/nrf/mpconfigport.mk
diff options
context:
space:
mode:
Diffstat (limited to 'ports/nrf/mpconfigport.mk')
-rw-r--r--ports/nrf/mpconfigport.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/nrf/mpconfigport.mk b/ports/nrf/mpconfigport.mk
new file mode 100644
index 000000000..dc29a92cf
--- /dev/null
+++ b/ports/nrf/mpconfigport.mk
@@ -0,0 +1,4 @@
+# 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.
+MPY_TOOL_LONGINT_IMPL = -mlongint-impl=mpz