diff options
author | Damien George <damien.p.george@gmail.com> | 2018-04-10 15:06:47 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-04-10 15:06:47 +1000 |
commit | ef12a4bd05cdd531d9c130763ffb2470e9c0fb54 (patch) | |
tree | 94d7766955f9de3e3553e3f44afcd898aa7962cb /py/asmthumb.h | |
parent | 5ad27d4b8bb248954d98178e068a382599dadfa6 (diff) |
py: Refactor how native emitter code is compiled with a file per arch.
Instead of emitnative.c having configuration code for each supported
architecture, and then compiling this file multiple times with different
macros defined, this patch adds a file per architecture with the necessary
code to configure the native emitter. These files then #include the
emitnative.c file.
This simplifies emitnative.c (which is already very large), and simplifies
the build system because emitnative.c no longer needs special handling for
compilation and qstr extraction.
Diffstat (limited to 'py/asmthumb.h')
-rw-r--r-- | py/asmthumb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/asmthumb.h b/py/asmthumb.h index 552ad75fc..8a7df5d50 100644 --- a/py/asmthumb.h +++ b/py/asmthumb.h @@ -26,6 +26,7 @@ #ifndef MICROPY_INCLUDED_PY_ASMTHUMB_H #define MICROPY_INCLUDED_PY_ASMTHUMB_H +#include <assert.h> #include "py/misc.h" #include "py/asmbase.h" |