summaryrefslogtreecommitdiffstatshomepage
path: root/py/emitnative.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-04 13:55:24 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-04 13:55:24 +0000
commite67ed5d285bb2ae7b83eb8be3ee488ab08fa4db1 (patch)
treeb11250057a7957da577daab994e91ef0a6718514 /py/emitnative.c
parent32f88410a153967af3f013d02a1a662aec19ec04 (diff)
downloadmicropython-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.c4
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)