build: Simplify coverage configuration
Use -coverage option and keep NDEBUG off
This commit is contained in:
parent
ce4ac17780
commit
1d854cd420
1 changed files with 2 additions and 3 deletions
5
Makefile
5
Makefile
|
@ -20,9 +20,8 @@ ifeq ($(config),release)
|
|||
endif
|
||||
|
||||
ifeq ($(config),coverage)
|
||||
CXXFLAGS+=-DNDEBUG
|
||||
CXXFLAGS+=-fprofile-arcs -ftest-coverage
|
||||
LDFLAGS+=-fprofile-arcs
|
||||
CXXFLAGS+=-coverage
|
||||
LDFLAGS+=-coverage
|
||||
endif
|
||||
|
||||
ifeq ($(config),sanitize)
|
||||
|
|
Loading…
Add table
Reference in a new issue