Skip to content

Commit 2c573f0

Browse files
committed
py/builtinimport: Unbreak bare-arm build.
1 parent 8a2970e commit 2c573f0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

py/builtinimport.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,11 @@ STATIC void do_load(mp_obj_t module_obj, vstr_t *file) {
209209
#if MICROPY_ENABLE_COMPILER
210210
{
211211
void *modref;
212+
#if MICROPY_MODULE_FROZEN
212213
int frozen_type = mp_find_frozen_module(file_str, file->len, &modref);
214+
#else
215+
int frozen_type = MP_FROZEN_NONE;
216+
#endif
213217
#if MICROPY_PERSISTENT_CODE_LOAD || MICROPY_MODULE_FROZEN_MPY
214218
if (frozen_type == MP_FROZEN_MPY) {
215219
do_execute_raw_code(module_obj, modref);

0 commit comments

Comments
 (0)