1 parent 351424e commit c3ae03fCopy full SHA for c3ae03f
1 file changed
unix/mpconfigport.h
@@ -35,8 +35,11 @@
35
#endif
36
#if !defined(MICROPY_EMIT_THUMB) && defined(__thumb2__)
37
#define MICROPY_EMIT_THUMB (1)
38
+ #define MICROPY_MAKE_POINTER_CALLABLE(p) ((void*)((mp_uint_t)(p) | 1))
39
-#if !defined(MICROPY_EMIT_ARM) && defined(__arm__)
40
+// Some compilers define __thumb2__ and __arm__ at the same time, let
41
+// autodetected thumb2 emitter have priority.
42
+#if !defined(MICROPY_EMIT_ARM) && defined(__arm__) && !defined(__thumb2__)
43
#define MICROPY_EMIT_ARM (1)
44
45
#define MICROPY_COMP_MODULE_CONST (1)
0 commit comments