diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-04 13:55:24 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-04 13:55:24 +0000 |
commit | e67ed5d285bb2ae7b83eb8be3ee488ab08fa4db1 (patch) | |
tree | b11250057a7957da577daab994e91ef0a6718514 /py/emitnative.c | |
parent | 32f88410a153967af3f013d02a1a662aec19ec04 (diff) | |
download | micropython-e67ed5d285bb2ae7b83eb8be3ee488ab08fa4db1.tar.gz micropython-e67ed5d285bb2ae7b83eb8be3ee488ab08fa4db1.zip |
Improve configurability for native x64/thumb emitter.
With MICROPY_EMIT_X64 and MICROPY_EMIT_THUMB disabled, the respective
emitters and assemblers will not be included in the code. This can
significantly reduce binary size for unix version.
Diffstat (limited to 'py/emitnative.c')
-rw-r--r-- | py/emitnative.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/emitnative.c b/py/emitnative.c index a29922d96c..cc00c57319 100644 --- a/py/emitnative.c +++ b/py/emitnative.c @@ -34,7 +34,7 @@ #include "runtime.h" // wrapper around everything in this file -#if N_X64 || N_THUMB +#if (MICROPY_EMIT_X64 && N_X64) || (MICROPY_EMIT_THUMB && N_THUMB) #if N_X64 @@ -1319,4 +1319,4 @@ const emit_method_table_t EXPORT_FUN(method_table) = { emit_native_yield_from, }; -#endif // N_X64 || N_THUMB +#endif // (MICROPY_EMIT_X64 && N_X64) || (MICROPY_EMIT_THUMB && N_THUMB) |