No qstr hash on all SAMD21

This commit is contained in:
Scott Shawcroft 2025-04-22 11:03:48 -07:00
parent 7aadc8436d
commit 50382b22c7
No known key found for this signature in database
2 changed files with 4 additions and 0 deletions

View file

@ -51,6 +51,8 @@
// See https://github.com/micropython/micropython/pull/11353
#define MICROPY_NLR_THUMB_USE_LONG_JUMP (1)
// Don't store qstr hashes and do string compares instead.
#define MICROPY_QSTR_BYTES_IN_HASH (0)
#endif // SAMD21

View file

@ -142,7 +142,9 @@ extern void common_hal_mcu_enable_interrupts(void);
#define MICROPY_PY___FILE__ (1)
#if CIRCUITPY_FULL_BUILD
#ifndef MICROPY_QSTR_BYTES_IN_HASH
#define MICROPY_QSTR_BYTES_IN_HASH (1)
#endif
#else
#define MICROPY_QSTR_BYTES_IN_HASH (0)
#endif