File tree Expand file tree Collapse file tree
examples/usercmodule/cppexample Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ SRC_USERMOD_CXX += $(CPPEXAMPLE_MOD_DIR)/example.cpp
66
77# Add our module directory to the include path.
88CFLAGS_USERMOD += -I$(CPPEXAMPLE_MOD_DIR )
9- CXXFLAGS_USERMOD += -I$(CPPEXAMPLE_MOD_DIR )
9+ CXXFLAGS_USERMOD += -I$(CPPEXAMPLE_MOD_DIR ) -std=c++11
1010
1111# We use C++ features so have to link against the standard library.
1212LDFLAGS_USERMOD += -lstdc++
Original file line number Diff line number Diff line change @@ -270,12 +270,6 @@ CFLAGS += -DMPZ_DIG_SIZE=16 # force 16 bits to work on both 32 and 64 bit archs
270270CFLAGS += -DMICROPY_MODULE_FROZEN_STR
271271endif
272272
273- HASCPP17 = $(shell expr `$(CC ) -dumpversion | cut -f1 -d.` \>= 7)
274- ifeq ($(HASCPP17 ) , 1)
275- CXXFLAGS += -std=c++17
276- else
277- CXXFLAGS += -std=c++11
278- endif
279273CXXFLAGS += $(filter-out -Wmissing-prototypes -Wold-style-definition -std=gnu99,$(CFLAGS ) $(CXXFLAGS_MOD ) )
280274
281275ifeq ($(MICROPY_FORCE_32BIT ) ,1)
You can’t perform that action at this time.
0 commit comments