unix: Fix thumb2 vs arm native emitter auto-detection.

Make thumb2 have priority over arm.
pull/1243/head
Paul Sokolovsky 2015-05-08 02:24:43 +03:00 zatwierdzone przez Damien George
rodzic 351424e719
commit c3ae03ff18
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -35,8 +35,11 @@
#endif
#if !defined(MICROPY_EMIT_THUMB) && defined(__thumb2__)
#define MICROPY_EMIT_THUMB (1)
#define MICROPY_MAKE_POINTER_CALLABLE(p) ((void*)((mp_uint_t)(p) | 1))
#endif
#if !defined(MICROPY_EMIT_ARM) && defined(__arm__)
// Some compilers define __thumb2__ and __arm__ at the same time, let
// autodetected thumb2 emitter have priority.
#if !defined(MICROPY_EMIT_ARM) && defined(__arm__) && !defined(__thumb2__)
#define MICROPY_EMIT_ARM (1)
#endif
#define MICROPY_COMP_MODULE_CONST (1)