summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lechner <david@lechnology.com>2020-06-01 12:18:58 -0500
committerDamien George <damien@micropython.org>2021-06-25 10:48:56 +1000
commit115acadf9211fddc8b5857af287daa622dc615c1 (patch)
treec513faf2b7dbbe97f705bd810efa3342c35b3634
parent8cebd56a11be1d3fbc87344f4e18fcdec6382b37 (diff)
mpy-cross: Disable stack check when building with Emscripten.
`mpy-cross` can be compiled to WASM using Emscripten, but it is not happy unless the stack check is disabled. Signed-off-by: David Lechner <david@pybricks.com>
-rw-r--r--mpy-cross/mpconfigport.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mpy-cross/mpconfigport.h b/mpy-cross/mpconfigport.h
index 7ff3d1b6b..96d372656 100644
--- a/mpy-cross/mpconfigport.h
+++ b/mpy-cross/mpconfigport.h
@@ -62,7 +62,9 @@
#define MICROPY_READER_POSIX (1)
#define MICROPY_ENABLE_RUNTIME (0)
#define MICROPY_ENABLE_GC (1)
+#ifndef __EMSCRIPTEN__
#define MICROPY_STACK_CHECK (1)
+#endif
#define MICROPY_HELPER_LEXER_UNIX (1)
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
#define MICROPY_ENABLE_SOURCE_LINE (1)