File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed
examples/usercmodule/cppexample Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ SRC_USERMOD_CXX += $(CPPEXAMPLE_MOD_DIR)/example.cpp
6
6
7
7
# Add our module directory to the include path.
8
8
CFLAGS_USERMOD += -I$(CPPEXAMPLE_MOD_DIR )
9
- CXXFLAGS_USERMOD += -I$(CPPEXAMPLE_MOD_DIR )
9
+ CXXFLAGS_USERMOD += -I$(CPPEXAMPLE_MOD_DIR ) -std=c++11
10
10
11
11
# We use C++ features so have to link against the standard library.
12
12
LDFLAGS_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
270
270
CFLAGS += -DMICROPY_MODULE_FROZEN_STR
271
271
endif
272
272
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
279
273
CXXFLAGS += $(filter-out -Wmissing-prototypes -Wold-style-definition -std=gnu99,$(CFLAGS ) $(CXXFLAGS_MOD ) )
280
274
281
275
ifeq ($(MICROPY_FORCE_32BIT ) ,1)
You can’t perform that action at this time.
0 commit comments