diff options
| author | David Lechner <david@pybricks.com> | 2021-07-30 10:26:17 -0500 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2021-07-31 16:51:58 +1000 |
| commit | afcc77cebc38020d838e0af5ef4c9b7d3028a6c3 (patch) | |
| tree | cb8eb4862f607599f38e37538d3a6969a3310f39 /py/builtinimport.c | |
| parent | 4445c73b113d8a35506ae5467559a7302dc79c7a (diff) | |
py/builtinimport: Fix condition for including do_execute_raw_code().
Commit e33bc597 ("py: Remove calls to file reader functions when these
are disabled.") changed the condition for one caller of
do_execute_raw_code() from
MICROPY_PERSISTENT_CODE_LOAD
to
MICROPY_HAS_FILE_READER && MICROPY_PERSISTENT_CODE_LOAD
The condition that enables compiling the function itself needs to be
changed to match.
Signed-off-by: David Lechner <david@pybricks.com>
Diffstat (limited to 'py/builtinimport.c')
| -rw-r--r-- | py/builtinimport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/builtinimport.c b/py/builtinimport.c index abbeefced..cdee5e407 100644 --- a/py/builtinimport.c +++ b/py/builtinimport.c @@ -142,7 +142,7 @@ STATIC void do_load_from_lexer(mp_obj_t module_obj, mp_lexer_t *lex) { } #endif -#if MICROPY_PERSISTENT_CODE_LOAD || MICROPY_MODULE_FROZEN_MPY +#if (MICROPY_HAS_FILE_READER && MICROPY_PERSISTENT_CODE_LOAD) || MICROPY_MODULE_FROZEN_MPY STATIC void do_execute_raw_code(mp_obj_t module_obj, mp_raw_code_t *raw_code, const char *source_name) { (void)source_name; |
