mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
defs.mk: Profile with -pg --coverage
- USE_PROFILER now adds -pg to FLAGS
- --coverage (ex -fprofile-args -ftest-coverage) is now triggered
by USE_GCOV
This commit is contained in:
parent
8699760789
commit
0be8219671
1 changed files with 9 additions and 3 deletions
12
make/defs.mk
12
make/defs.mk
|
|
@ -472,10 +472,16 @@ ifeq ($(USE_TIMER),true)
|
|||
CPPFLAGS += -D_USE_TIMER_
|
||||
endif
|
||||
|
||||
ifeq ($(USE_GCOV),true)
|
||||
CFLAGS += --coverage
|
||||
CPPFLAGS += --coverage
|
||||
LDFLAGS += --coverage
|
||||
endif
|
||||
|
||||
ifeq ($(USE_PROFILER),true)
|
||||
CFLAGS += -fprofile-arcs -ftest-coverage
|
||||
CPPFLAGS += -fprofile-arcs -ftest-coverage
|
||||
LDFLAGS += -fprofile-arcs -ftest-coverage
|
||||
CFLAGS += -pg
|
||||
CPPFLAGS += -pg
|
||||
LDFLAGS += -pg
|
||||
endif
|
||||
|
||||
ifeq ($(USE_YAMD),true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue