From c65913c2fb68d450059b6b4d8e9adf01443a37d0 Mon Sep 17 00:00:00 2001 From: Alessandro Gatti Date: Fri, 13 Oct 2023 18:52:15 +0200 Subject: [PATCH] tools/makemanifest.py: Generate working code for empty manifests. When no usable manifest directives are found (as opposed to no manifest being set in the makefile), non-compiling code was generated for the empty frozen constants pool block. Signed-off-by: Alessandro Gatti --- tools/makemanifest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/makemanifest.py b/tools/makemanifest.py index a74a6934ae..1b742c28d9 100644 --- a/tools/makemanifest.py +++ b/tools/makemanifest.py @@ -245,7 +245,7 @@ def main(): b'#include "py/emitglue.h"\n' b"extern const qstr_pool_t mp_qstr_const_pool;\n" b"const qstr_pool_t mp_qstr_frozen_const_pool = {\n" - b" (qstr_pool_t*)&mp_qstr_const_pool, MP_QSTRnumber_of, 0, 0\n" + b" (qstr_pool_t*)&mp_qstr_const_pool, MP_QSTRnumber_of, 0, 0, NULL, NULL\n" b"};\n" b'const char mp_frozen_names[] = { MP_FROZEN_STR_NAMES "\\0"};\n' b"const mp_raw_code_t *const mp_frozen_mpy_content[] = {NULL};\n"