From 5b94c610971334019e7301026e0fbbf5950e094d Mon Sep 17 00:00:00 2001 From: stijn Date: Thu, 10 Sep 2020 14:13:25 +0200 Subject: [PATCH] windows/Makefile: Support freezing modules. Alter the build flags as needed to support freezing modules with a manifest. This makes freezing works just like it does for e.g. the unix port. --- ports/windows/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ports/windows/Makefile b/ports/windows/Makefile index b2d11872e..3bfbc1830 100644 --- a/ports/windows/Makefile +++ b/ports/windows/Makefile @@ -58,4 +58,9 @@ SRC_QSTR += $(SRC_C) # SRC_QSTR SRC_QSTR_AUTO_DEPS += +ifneq ($(FROZEN_MANIFEST),) +CFLAGS += -DMICROPY_QSTR_EXTRA_POOL=mp_qstr_frozen_const_pool -DMICROPY_MODULE_FROZEN_MPY=1 -DMPZ_DIG_SIZE=16 +MPY_CROSS_FLAGS += -mcache-lookup-bc +endif + include $(TOP)/py/mkrules.mk