summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-07-13 13:49:51 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-07-13 13:49:51 +0300
commitb82f34edde79e14d6b9260b3fddaf36b1354a558 (patch)
treeaf9f3ba15825fed3f6c16059a5455dee7259310e
parent2cf381081ae0b7c3fa80814bebd626cb678ca766 (diff)
downloadmicropython-b82f34edde79e14d6b9260b3fddaf36b1354a558.tar.gz
micropython-b82f34edde79e14d6b9260b3fddaf36b1354a558.zip
unix: Allow to disable MICROPY_EMIT_X64 from commandline.
emitnative in particular requires nlr_* to be real functions, so doesn't compile with MICROPY_NLR_SETJMP=1.
-rw-r--r--unix/mpconfigport.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h
index 73435863b7..0831e3fd34 100644
--- a/unix/mpconfigport.h
+++ b/unix/mpconfigport.h
@@ -27,7 +27,9 @@
// options to control how Micro Python is built
#define MICROPY_ALLOC_PATH_MAX (PATH_MAX)
+#ifndef MICROPY_EMIT_X64
#define MICROPY_EMIT_X64 (1)
+#endif
#define MICROPY_EMIT_THUMB (0)
#define MICROPY_EMIT_INLINE_THUMB (0)
#define MICROPY_ENABLE_GC (1)