File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,14 @@ CFLAGS += -Os -DNDEBUG
41
41
CFLAGS += -fdata-sections -ffunction-sections
42
42
endif
43
43
44
+ # Flags for optional C++ source code
45
+ CXXFLAGS += $(filter-out -std=c99,$(CFLAGS ) )
46
+ CXXFLAGS += $(CXXFLAGS_MOD )
47
+
48
+ # Flags for user C modules
49
+ CFLAGS += $(CFLAGS_MOD )
50
+ LDFLAGS += $(LDFLAGS_MOD )
51
+
44
52
LIBS =
45
53
46
54
SRC_C = \
@@ -56,7 +64,14 @@ ifeq ($(CROSS), 1)
56
64
SRC_C += shared/libc/string0.c
57
65
endif
58
66
59
- OBJ = $(PY_CORE_O ) $(addprefix $(BUILD ) /, $(SRC_C:.c=.o ) )
67
+ SRC_C += $(SRC_MOD )
68
+
69
+ SRC_CXX += $(SRC_MOD_CXX )
70
+
71
+ SRC_QSTR += $(SRC_MOD ) $(SRC_MOD_CXX )
72
+
73
+ OBJ += $(PY_CORE_O ) $(addprefix $(BUILD ) /, $(SRC_C:.c=.o ) )
74
+ OBJ += $(addprefix $(BUILD ) /, $(SRC_CXX:.cpp=.o ) )
60
75
61
76
ifeq ($(CROSS ) , 1)
62
77
all : $(BUILD ) /firmware.dfu
You can’t perform that action at this time.
0 commit comments