mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
Fix build not to always use code coverage.
Somehow, the way this was structured before always did a gcov build.
Andrew Bartlett
(This used to be commit 052edb7864
)
This commit is contained in:
parent
dd0da89e84
commit
0b4c401f06
@ -313,19 +313,21 @@ locktest_OBJ_FILES = torture/locktest.o
|
|||||||
|
|
||||||
MANPAGES += torture/man/locktest.1
|
MANPAGES += torture/man/locktest.1
|
||||||
|
|
||||||
|
GCOV=0
|
||||||
|
|
||||||
ifeq ($(MAKECMDGOALS),gcov)
|
ifeq ($(MAKECMDGOALS),gcov)
|
||||||
GCOV?=1
|
GCOV=1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(MAKECMDGOALS),lcov)
|
ifeq ($(MAKECMDGOALS),lcov)
|
||||||
GCOV?=1
|
GCOV=1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(MAKECMDGOALS),testcov-html)
|
ifeq ($(MAKECMDGOALS),testcov-html)
|
||||||
GCOV?=1
|
GCOV=1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef GCOV
|
ifeq ($(GCOV),1)
|
||||||
CFLAGS += --coverage
|
CFLAGS += --coverage
|
||||||
LDFLAGS += --coverage
|
LDFLAGS += --coverage
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user