mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +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
|
||||
|
||||
GCOV=0
|
||||
|
||||
ifeq ($(MAKECMDGOALS),gcov)
|
||||
GCOV?=1
|
||||
GCOV=1
|
||||
endif
|
||||
|
||||
ifeq ($(MAKECMDGOALS),lcov)
|
||||
GCOV?=1
|
||||
GCOV=1
|
||||
endif
|
||||
|
||||
ifeq ($(MAKECMDGOALS),testcov-html)
|
||||
GCOV?=1
|
||||
GCOV=1
|
||||
endif
|
||||
|
||||
ifdef GCOV
|
||||
ifeq ($(GCOV),1)
|
||||
CFLAGS += --coverage
|
||||
LDFLAGS += --coverage
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user