From 115acadf9211fddc8b5857af287daa622dc615c1 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Mon, 1 Jun 2020 12:18:58 -0500 Subject: [PATCH] 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 --- mpy-cross/mpconfigport.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mpy-cross/mpconfigport.h b/mpy-cross/mpconfigport.h index 7ff3d1b6b4..96d3726562 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)