summaryrefslogtreecommitdiff
path: root/py/mpconfig.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-09-06 23:06:36 +0100
committerDamien George <damien.p.george@gmail.com>2014-09-06 23:06:36 +0100
commitc90f59ec3a4c77848f36c710ed4ab8d55a944a0c (patch)
treeafa66e5e0feb34232212f676c1a85ee9b132ddbc /py/mpconfig.h
parent33b50a02176bcf4f7114498f9925003808d6e53f (diff)
py: Add support for emitting native x86 machine code.
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r--py/mpconfig.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 633a4a52d..adbcb0eb7 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -101,6 +101,11 @@
#define MICROPY_EMIT_X64 (0)
#endif
+// Whether to emit x86 native code
+#ifndef MICROPY_EMIT_X86
+#define MICROPY_EMIT_X86 (0)
+#endif
+
// Whether to emit thumb native code
#ifndef MICROPY_EMIT_THUMB
#define MICROPY_EMIT_THUMB (0)
@@ -117,7 +122,7 @@
#endif
// Convenience definition for whether any native emitter is enabled
-#define MICROPY_EMIT_NATIVE (MICROPY_EMIT_X64 || MICROPY_EMIT_THUMB || MICROPY_EMIT_ARM)
+#define MICROPY_EMIT_NATIVE (MICROPY_EMIT_X64 || MICROPY_EMIT_X86 || MICROPY_EMIT_THUMB || MICROPY_EMIT_ARM)
/*****************************************************************************/
/* Compiler configuration */