py/compile: Add support to select the native emitter at runtime.

This commit is contained in:
Damien George
2019-03-09 10:59:25 +11:00
parent 0e4c24ec08
commit d9d92f27d7
6 changed files with 45 additions and 3 deletions

View File

@@ -46,6 +46,7 @@ typedef struct mp_dynamic_compiler_t {
uint8_t small_int_bits; // must be <= host small_int_bits
bool opt_cache_map_lookup_in_bytecode;
bool py_builtins_str_unicode;
uint8_t native_arch;
} mp_dynamic_compiler_t;
extern mp_dynamic_compiler_t mp_dynamic_compiler;
#endif