summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstijn <stijn@ignitron.net>2020-09-10 14:13:25 +0200
committerDamien George <damien@micropython.org>2020-09-11 10:52:52 +1000
commit5b94c610971334019e7301026e0fbbf5950e094d (patch)
treed615f1e55c4cfeeb7964adbd7a78e5d0d2841a40
parent2a9ea69fa93b1b940b802f981f8835f6decdb085 (diff)
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.
-rw-r--r--ports/windows/Makefile5
1 files changed, 5 insertions, 0 deletions
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