Skip to content

Commit 58b3b48

Browse files
authored
Merge pull request #5157 from DavePutz/issue_5155
Make MICROPY_CPYTHON_COMPAT settable
2 parents 0553561 + 6c0e983 commit 58b3b48

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

py/circuitpy_mpconfig.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,9 @@ typedef long mp_off_t;
188188

189189
// Turning off FULL_BUILD removes some functionality to reduce flash size on tiny SAMD21s
190190
#define MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG (CIRCUITPY_FULL_BUILD)
191+
#ifndef MICROPY_CPYTHON_COMPAT
191192
#define MICROPY_CPYTHON_COMPAT (CIRCUITPY_FULL_BUILD)
193+
#endif
192194
#define MICROPY_PY_BUILTINS_POW3 (CIRCUITPY_BUILTINS_POW3)
193195
#define MICROPY_COMP_FSTRING_LITERAL (MICROPY_CPYTHON_COMPAT)
194196
#define MICROPY_MODULE_WEAK_LINKS (0)

0 commit comments

Comments
 (0)