mirror of
https://github.com/tmux/tmux.git
synced 2025-01-26 07:58:55 +00:00
Add --enable-coverage for gcov.
This commit is contained in:
parent
66c4ed98d6
commit
ef35c9f765
@ -33,6 +33,10 @@ CFLAGS += -Wundef -Wbad-function-cast -Winline -Wcast-align
|
|||||||
CFLAGS += -Wdeclaration-after-statement -Wno-pointer-sign
|
CFLAGS += -Wdeclaration-after-statement -Wno-pointer-sign
|
||||||
CPPFLAGS += -DDEBUG
|
CPPFLAGS += -DDEBUG
|
||||||
endif
|
endif
|
||||||
|
if IS_COVERAGE
|
||||||
|
CFLAGS += -g -O0 --coverage
|
||||||
|
LDFLAGS += --coverage
|
||||||
|
endif
|
||||||
CPPFLAGS += -iquote.
|
CPPFLAGS += -iquote.
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
12
configure.ac
12
configure.ac
@ -23,15 +23,23 @@ AC_PROG_INSTALL
|
|||||||
# Default tmux.conf goes in /etc not ${prefix}/etc.
|
# Default tmux.conf goes in /etc not ${prefix}/etc.
|
||||||
test "$sysconfdir" = '${prefix}/etc' && sysconfdir=/etc
|
test "$sysconfdir" = '${prefix}/etc' && sysconfdir=/etc
|
||||||
|
|
||||||
# Is this a debug build?
|
# Is this --enable-debug?
|
||||||
found_debug=yes
|
found_debug=yes
|
||||||
AC_ARG_ENABLE(
|
AC_ARG_ENABLE(
|
||||||
debug,
|
debug,
|
||||||
AC_HELP_STRING(--enable-debug, create a debug build),
|
AC_HELP_STRING(--enable-debug, enable debug build flags),
|
||||||
found_debug=$enable_debug
|
found_debug=$enable_debug
|
||||||
)
|
)
|
||||||
AM_CONDITIONAL(IS_DEBUG, test "x$found_debug" = xyes)
|
AM_CONDITIONAL(IS_DEBUG, test "x$found_debug" = xyes)
|
||||||
|
|
||||||
|
# Is this --enable-coverage?
|
||||||
|
AC_ARG_ENABLE(
|
||||||
|
coverage,
|
||||||
|
AC_HELP_STRING(--enable-coverage, enable coverage build flags),
|
||||||
|
found_coverage=$enable_coverage
|
||||||
|
)
|
||||||
|
AM_CONDITIONAL(IS_COVERAGE, test "x$found_coverage" = xyes)
|
||||||
|
|
||||||
# Is this a static build?
|
# Is this a static build?
|
||||||
AC_ARG_ENABLE(
|
AC_ARG_ENABLE(
|
||||||
static,
|
static,
|
||||||
|
Loading…
Reference in New Issue
Block a user