Skip to content

Commit 92a4319

Browse files
committed
Fix mpy-cross by providing default
1 parent 771b4c7 commit 92a4319

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

py/qstr.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@ mp_uint_t qstr_compute_hash(const byte *data, size_t len) {
7676
}
7777
return hash;
7878
}
79-
80-
#if CIRCUITPY_PRECOMPUTE_QSTR_ATTR
79+
#ifndef CIRCUITPY_PRECOMPUTE_QSTR_ATTR
80+
#define CIRCUITPY_PRECOMPUTE_QSTR_ATTR (1)
81+
#endif
82+
#if CIRCUITPY_PRECOMPUTE_QSTR_ATTR == 1
8183
const qstr_attr_t mp_qstr_const_attr[MP_QSTRnumber_of] = {
8284
#ifndef NO_QSTR
8385
#define QDEF(id, hash, len, str) { hash, len },

0 commit comments

Comments
 (0)