summaryrefslogtreecommitdiff
path: root/tools/mpy-tool.py
diff options
context:
space:
mode:
authorJun Wu <quark@lihdd.net>2019-05-06 00:31:11 -0700
committerDamien George <damien.p.george@gmail.com>2019-06-28 13:54:45 +1000
commitb152bbddd132cf3f147a526efebedaf25eba29cd (patch)
treee08cca35286d293c6e2f9ad5ceac682d81630936 /tools/mpy-tool.py
parentced340d739e84737dd5c8e6b4ab9af2ea44e29e7 (diff)
py: Define EMIT_MACHINE_CODE as EMIT_NATIVE || EMIT_INLINE_ASM.
The combination MICROPY_EMIT_NATIVE || MICROPY_EMIT_INLINE_ASM is used in many places, so define a new macro for it.
Diffstat (limited to 'tools/mpy-tool.py')
-rwxr-xr-xtools/mpy-tool.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mpy-tool.py b/tools/mpy-tool.py
index a97af7737..648d56fe0 100755
--- a/tools/mpy-tool.py
+++ b/tools/mpy-tool.py
@@ -410,13 +410,13 @@ class RawCode(object):
print(' .fun_data_len = %u,' % len(self.bytecode))
print(' .n_obj = %u,' % len(self.objs))
print(' .n_raw_code = %u,' % len(self.raw_codes))
- print(' #if MICROPY_EMIT_NATIVE || MICROPY_EMIT_INLINE_ASM')
+ print(' #if MICROPY_EMIT_MACHINE_CODE')
print(' .prelude_offset = %u,' % self.prelude_offset)
print(' .n_qstr = %u,' % len(qstr_links))
print(' .qstr_link = NULL,') # TODO
print(' #endif')
print(' #endif')
- print(' #if MICROPY_EMIT_NATIVE || MICROPY_EMIT_INLINE_ASM')
+ print(' #if MICROPY_EMIT_MACHINE_CODE')
print(' .type_sig = %u,' % type_sig)
print(' #endif')
print('};')