From a0d31e54ae5219a2794784311b6df45b680007d2 Mon Sep 17 00:00:00 2001 From: Jim Mussared Date: Tue, 26 Mar 2024 13:10:45 +1100 Subject: [PATCH] esp8266/Makefile: Add support for C++ user C modules. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared --- ports/esp8266/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ports/esp8266/Makefile b/ports/esp8266/Makefile index 8af7aba0aa..1b9e9623b6 100644 --- a/ports/esp8266/Makefile +++ b/ports/esp8266/Makefile @@ -96,6 +96,9 @@ COPT += -Os -DNDEBUG LDFLAGS += --gc-sections endif +# Flags for optional C++ source code +CXXFLAGS += $(filter-out -Wmissing-prototypes -Wold-style-definition -std=gnu99,$(CFLAGS)) + # Options for mpy-cross MPY_CROSS_FLAGS += -march=xtensa