mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-25 06:00:36 +00:00
Add --enable-coverage option to configure script.
This option enables the proper compiler flags for tracking code coverage, which is useful along side automated testing. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279953 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -43,12 +43,17 @@ ifneq ($(findstring darwin,$(OSARCH)),)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(findstring DONT_OPTIMIZE,$(MENUSELECT_CFLAGS)),)
|
||||
ifeq ($(findstring DONT_OPTIMIZE,$(MENUSELECT_CFLAGS))$(AST_CODE_COVERAGE),no)
|
||||
_ASTCFLAGS+=$(OPTIMIZE)
|
||||
else
|
||||
_ASTCFLAGS+=-O0
|
||||
endif
|
||||
|
||||
ifeq ($(AST_CODE_COVERAGE),yes)
|
||||
_ASTCFLAGS+=-ftest-coverage -fprofile-arcs
|
||||
_ASTLDFLAGS+=-ftest-coverage -fprofile-arcs
|
||||
endif
|
||||
|
||||
ifeq ($(findstring $(CONFIG_CFLAGS),$(_ASTCFLAGS)),)
|
||||
_ASTCFLAGS+=$(CONFIG_CFLAGS)
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user