py/dynruntime.mk: Set MICROPY_ENABLE_DYNRUNTIME instead of per module.

So this setting could be used by other source files if needed.
This commit is contained in:
Jim Mussared
2020-03-04 17:07:42 +11:00
committed by Damien George
parent 994c1dd57a
commit c34e7b9d4c
8 changed files with 5 additions and 6 deletions

View File

@@ -33,6 +33,10 @@
#include "py/objstr.h"
#include "py/objtype.h"
#if !MICROPY_ENABLE_DYNRUNTIME
#error "dynruntime.h included in non-dynamic-module build."
#endif
#undef MP_ROM_QSTR
#undef MP_OBJ_QSTR_VALUE
#undef MP_OBJ_NEW_QSTR