Skip to content
Snippets Groups Projects
Commit a669cbc6 authored by Damien George's avatar Damien George
Browse files

unix: Auto-detect MICROPY_EMIT_X64 and MICROPY_GCREGS_SETJMP.

If not set, MICROPY_EMIT_X64 is set only if on x86-64 machine.

If not set, MICROPY_GCREGS_SETJMP is set when on MIPS.
parent 91fbea2c
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
// options to control how Micro Python is built // options to control how Micro Python is built
#define MICROPY_ALLOC_PATH_MAX (PATH_MAX) #define MICROPY_ALLOC_PATH_MAX (PATH_MAX)
#ifndef MICROPY_EMIT_X64 #if !defined(MICROPY_EMIT_X64) && defined(__x86_64__)
#define MICROPY_EMIT_X64 (1) #define MICROPY_EMIT_X64 (1)
#endif #endif
#define MICROPY_EMIT_THUMB (0) #define MICROPY_EMIT_THUMB (0)
...@@ -62,8 +62,12 @@ ...@@ -62,8 +62,12 @@
// Define to 1 to use untested inefficient GC helper implementation // Define to 1 to use untested inefficient GC helper implementation
// (if more efficient arch-specific one is not available). // (if more efficient arch-specific one is not available).
#ifndef MICROPY_GCREGS_SETJMP #ifndef MICROPY_GCREGS_SETJMP
#ifdef __mips__
#define MICROPY_GCREGS_SETJMP (1)
#else
#define MICROPY_GCREGS_SETJMP (0) #define MICROPY_GCREGS_SETJMP (0)
#endif #endif
#endif
#define MICROPY_ENABLE_EMERGENCY_EXCEPTION_BUF (1) #define MICROPY_ENABLE_EMERGENCY_EXCEPTION_BUF (1)
#define MICROPY_EMERGENCY_EXCEPTION_BUF_SIZE (128) #define MICROPY_EMERGENCY_EXCEPTION_BUF_SIZE (128)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment