Skip to content

Commit 97d0df9

Browse files
committed
add gcov config
1 parent 0457dd7 commit 97d0df9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

config/gcov.mk

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
include $(config_dir)base/base.mk
2+
3+
# no optimization to avoid mismamtch of actual code to source lines,
4+
# otherwise coverage report will not be accurate
5+
this_cxxflags += -O0
6+
7+
this_cxxflags += -ftest-coverage
8+
this_cxxflags += -fprofile-arcs
9+
this_cxxflags += --coverage
10+
11+
this_ldflags += --coverage

0 commit comments

Comments
 (0)