mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-22 14:10:39 +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_
|
CPPFLAGS += -D_USE_TIMER_
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(USE_GCOV),true)
|
||||||
|
CFLAGS += --coverage
|
||||||
|
CPPFLAGS += --coverage
|
||||||
|
LDFLAGS += --coverage
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(USE_PROFILER),true)
|
ifeq ($(USE_PROFILER),true)
|
||||||
CFLAGS += -fprofile-arcs -ftest-coverage
|
CFLAGS += -pg
|
||||||
CPPFLAGS += -fprofile-arcs -ftest-coverage
|
CPPFLAGS += -pg
|
||||||
LDFLAGS += -fprofile-arcs -ftest-coverage
|
LDFLAGS += -pg
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(USE_YAMD),true)
|
ifeq ($(USE_YAMD),true)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue