Fix mpy-cross by providing default

This commit is contained in:
Scott Shawcroft 2021-08-31 13:38:37 -07:00
parent 771b4c7464
commit 92a43192f8
No known key found for this signature in database
GPG Key ID: 0DFD512649C052DA
1 changed files with 4 additions and 2 deletions

View File

@ -76,8 +76,10 @@ mp_uint_t qstr_compute_hash(const byte *data, size_t len) {
}
return hash;
}
#if CIRCUITPY_PRECOMPUTE_QSTR_ATTR
#ifndef CIRCUITPY_PRECOMPUTE_QSTR_ATTR
#define CIRCUITPY_PRECOMPUTE_QSTR_ATTR (1)
#endif
#if CIRCUITPY_PRECOMPUTE_QSTR_ATTR == 1
const qstr_attr_t mp_qstr_const_attr[MP_QSTRnumber_of] = {
#ifndef NO_QSTR
#define QDEF(id, hash, len, str) { hash, len },