diff options
Diffstat (limited to 'unix-cpy')
-rw-r--r-- | unix-cpy/Makefile | 1 | ||||
-rw-r--r-- | unix-cpy/main.c | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/unix-cpy/Makefile b/unix-cpy/Makefile index 9399a765c..0f20fe31c 100644 --- a/unix-cpy/Makefile +++ b/unix-cpy/Makefile @@ -47,6 +47,7 @@ PY_O = \ objtuple.o \ objtype.o \ builtin.o \ + builtinimport.o \ vm.o \ showbc.o \ repl.o \ diff --git a/unix-cpy/main.c b/unix-cpy/main.c index 2b59df4f3..eba97f527 100644 --- a/unix-cpy/main.c +++ b/unix-cpy/main.c @@ -8,8 +8,8 @@ #include "lexer.h" #include "lexerunix.h" #include "parse.h" -#include "compile.h" #include "obj.h" +#include "compile.h" #include "runtime0.h" #include "runtime.h" @@ -37,10 +37,10 @@ void do_file(const char *file) { //printf("----------------\n"); //parse_node_show(pn, 0); //printf("----------------\n"); - bool comp_ok = mp_compile(pn, false); + mp_obj_t module_fun = mp_compile(pn, false); //printf("----------------\n"); - if (!comp_ok) { + if (module_fun == mp_const_none) { printf("compile error\n"); } } |