summaryrefslogtreecommitdiff
path: root/py/mpconfig.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-05-29 21:17:29 +1000
committerDamien George <damien.p.george@gmail.com>2019-05-29 21:17:29 +1000
commita4f1d82757b8e95c21a095c99b7c3f04ded88104 (patch)
tree6c3f0112c2785e531b8cec986a6740665e1aa300 /py/mpconfig.h
parentbff4e130099e2ec17478bb00f7eaa5d85fb763dc (diff)
py/nativeglue: Remove dependency on mp_fun_table in dyn-compiler mode.
mpy-cross uses MICROPY_DYNAMIC_COMPILER and MICROPY_EMIT_NATIVE but does not actually need to execute native functions, and does not need mp_fun_table. This commit makes it so mp_fun_table and all its entries are not built when MICROPY_DYNAMIC_COMPILER is enabled, significantly reducing the size of the mpy-cross executable and allowing it to be built on more machines/OS's.
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r--py/mpconfig.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 219f8de44..4172e175b 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -338,6 +338,7 @@
#endif
// Whether the compiler is dynamically configurable (ie at runtime)
+// This will disable the ability to execute native/viper code
#ifndef MICROPY_DYNAMIC_COMPILER
#define MICROPY_DYNAMIC_COMPILER (0)
#endif