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.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/ports/unix/main.c b/ports/unix/main.c
index c8f083350..65a4dd8a1 100644
--- a/ports/unix/main.c
+++ b/ports/unix/main.c
@@ -138,7 +138,7 @@ STATIC int execute_from_lexer(int source_kind, const void *source, mp_parse_inpu
}
#endif
- mp_obj_t module_fun = mp_compile(&parse_tree, source_name, emit_opt, is_repl);
+ mp_obj_t module_fun = mp_compile(&parse_tree, source_name, is_repl);
if (!compile_only) {
// execute it
@@ -456,6 +456,13 @@ MP_NOINLINE int main_(int argc, char **argv) {
mp_init();
+ #if MICROPY_EMIT_NATIVE
+ // Set default emitter options
+ MP_STATE_VM(default_emit_opt) = emit_opt;
+ #else
+ (void)emit_opt;
+ #endif
+
#if MICROPY_VFS_POSIX
{
// Mount the host FS at the root of our internal VFS