summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstijn <stijn@ignitron.net>2022-02-17 12:44:42 +0100
committerDamien George <damien@micropython.org>2022-02-18 14:40:36 +1100
commitc14f47faa329ea3655aae3068956c138f7e9c178 (patch)
treecaaa813e01ca07b03a5373a74b3ae469437aef5c
parent8bb50c6301f5b3df143fff7a425f284e88a0b64d (diff)
windows/Makefile: Specify CXXFLAGS in the Makefile.
Enables building user modules which use C++ code, like the unix port.
-rw-r--r--ports/windows/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/ports/windows/Makefile b/ports/windows/Makefile
index 5a22be464..91744b7a5 100644
--- a/ports/windows/Makefile
+++ b/ports/windows/Makefile
@@ -91,6 +91,8 @@ ifneq ($(FROZEN_MANIFEST),)
CFLAGS += -DMICROPY_QSTR_EXTRA_POOL=mp_qstr_frozen_const_pool -DMICROPY_MODULE_FROZEN_MPY=1 -DMPZ_DIG_SIZE=16
endif
+CXXFLAGS += $(filter-out -std=gnu99,$(CFLAGS) $(CXXFLAGS_MOD))
+
include $(TOP)/py/mkrules.mk
.PHONY: test test_full