use CFLAG to properly set define
This commit is contained in:
parent
b74e78d2c0
commit
10eed78dd8
@ -69,7 +69,7 @@ ifndef CIRCUITPY_DISPLAYIO
|
|||||||
CIRCUITPY_DISPLAYIO = 1
|
CIRCUITPY_DISPLAYIO = 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
MICROPY_CPYTHON_COMPAT = 1
|
CFLAGS += -DMICROPY_CPYTHON_COMPAT=1
|
||||||
|
|
||||||
#ifeq ($(MCU_SUB_VARIANT), stm32f412zx)
|
#ifeq ($(MCU_SUB_VARIANT), stm32f412zx)
|
||||||
#endif
|
#endif
|
||||||
|
@ -182,7 +182,10 @@ typedef long mp_off_t;
|
|||||||
|
|
||||||
// Remove some lesser-used functionality to make small builds fit.
|
// Remove some lesser-used functionality to make small builds fit.
|
||||||
#define MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG (CIRCUITPY_FULL_BUILD)
|
#define MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG (CIRCUITPY_FULL_BUILD)
|
||||||
#define MICROPY_CPYTHON_COMPAT (CIRCUITPY_FULL_BUILD)
|
//TODO: replace this with a rework of the FULL_BUILD system
|
||||||
|
#if !defined(MICROPY_CPYTHON_COMPAT)
|
||||||
|
#define MICROPY_CPYTHON_COMPAT (CIRCUITPY_FULL_BUILD)
|
||||||
|
#endif
|
||||||
#define MICROPY_MODULE_WEAK_LINKS (CIRCUITPY_FULL_BUILD)
|
#define MICROPY_MODULE_WEAK_LINKS (CIRCUITPY_FULL_BUILD)
|
||||||
#define MICROPY_PY_ALL_SPECIAL_METHODS (CIRCUITPY_FULL_BUILD)
|
#define MICROPY_PY_ALL_SPECIAL_METHODS (CIRCUITPY_FULL_BUILD)
|
||||||
#define MICROPY_PY_BUILTINS_COMPLEX (CIRCUITPY_FULL_BUILD)
|
#define MICROPY_PY_BUILTINS_COMPLEX (CIRCUITPY_FULL_BUILD)
|
||||||
|
Loading…
Reference in New Issue
Block a user