summaryrefslogtreecommitdiff
path: root/ports/unix/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/unix/main.c')
-rw-r--r--ports/unix/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ports/unix/main.c b/ports/unix/main.c
index c388106a6..4f019b6c2 100644
--- a/ports/unix/main.c
+++ b/ports/unix/main.c
@@ -63,6 +63,11 @@ STATIC uint emit_opt = MP_EMIT_OPT_NONE;
long heap_size = 1024 * 1024 * (sizeof(mp_uint_t) / 4);
#endif
+// Number of heaps to assign by default if MICROPY_GC_SPLIT_HEAP=1
+#ifndef MICROPY_GC_SPLIT_HEAP_N_HEAPS
+#define MICROPY_GC_SPLIT_HEAP_N_HEAPS (1)
+#endif
+
STATIC void stderr_print_strn(void *env, const char *str, size_t len) {
(void)env;
ssize_t ret;