Skip to content

Commit 3e418ca

Browse files
committed
fix coverage build
1 parent 02a7aa6 commit 3e418ca

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)