py: Add option to compiler to specify default code emitter.

Also add command line option to unix port to select emitter.
This commit is contained in:
Damien George
2014-04-06 11:48:15 +01:00
parent deed087e2c
commit 65cad12d38
8 changed files with 41 additions and 26 deletions

View File

@@ -103,7 +103,7 @@ void do_load(mp_obj_t module_obj, vstr_t *file) {
}
// compile the imported script
mp_obj_t module_fun = mp_compile(pn, source_name, false);
mp_obj_t module_fun = mp_compile(pn, source_name, MP_EMIT_OPT_NONE, false);
mp_parse_node_free(pn);
if (module_fun == mp_const_none) {