Skip to content

Commit b194cce

Browse files
committed
!ci build with coverage
1 parent b3df128 commit b194cce

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bricks/_common/common.mk

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,11 @@ CFLAGS += -fsingle-precision-constant -Wdouble-promotion
213213
endif # end embedded, begin common
214214

215215
# Tune for Debugging or Optimization
216-
ifeq ($(DEBUG), 1)
217-
CFLAGS += -Og -ggdb
216+
ifeq ($(COVERAGE), 1)
217+
CFLAGS += --coverage -fprofile-arcs -ftest-coverage
218+
LDFLAGS += --coverage
219+
else ifeq ($(DEBUG), 1)
220+
CFLAGS += -O0 -ggdb
218221
else ifeq ($(DEBUG), 2)
219222
CFLAGS += -Os -DNDEBUG -flto=auto
220223
else

0 commit comments

Comments
 (0)