Merge pull request #2457 from hierophect/stm32-cpython-compat

STM32: Cpython compatibility flag 2
This commit is contained in:
Scott Shawcroft 2020-01-13 13:47:55 -08:00 committed by GitHub
commit 2eb26a6d0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -69,9 +69,7 @@ ifndef CIRCUITPY_DISPLAYIO
CIRCUITPY_DISPLAYIO = 1
endif
ifndef MICROPY_CPYTHON_COMPAT
MICROPY_CPYTHON_COMPAT = 1
endif
CFLAGS += -DMICROPY_CPYTHON_COMPAT=1
#ifeq ($(MCU_SUB_VARIANT), stm32f412zx)
#endif

View File

@ -182,7 +182,10 @@ typedef long mp_off_t;
// Remove some lesser-used functionality to make small builds fit.
#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_PY_ALL_SPECIAL_METHODS (CIRCUITPY_FULL_BUILD)
#define MICROPY_PY_BUILTINS_COMPLEX (CIRCUITPY_FULL_BUILD)