diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-11-22 14:14:28 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-11-22 14:20:13 +0100 |
commit | 90b0ae52fca51b2b34b53bf1723d5ee1c82bd75d (patch) | |
tree | 03836a4b99fc2985ef22f5ab19b883271f7754dd /configure.ac | |
parent | f9b139e0665992d837eb12c7ecbe7ca5682d47d7 (diff) | |
download | vala-90b0ae52fca51b2b34b53bf1723d5ee1c82bd75d.tar.gz |
build: Add --enable-debug configure option
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index a10cf4b19..40ee02a14 100644 --- a/configure.ac +++ b/configure.ac @@ -82,6 +82,12 @@ if test x$enable_boostrap = xyes; then VALAFLAGS="$VALAFLAGS --hide-internal --abi-stability" fi +AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [Enable debug build]), enable_debug=$enableval, enable_debug=no) +if test "$enable_coverage" = "yes"; then + VALAFLAGS="$VALAFLAGS -g" + CFLAGS="$CFLAGS -g -O0" +fi + AC_SUBST(VALAFLAGS) AC_SUBST(CFLAGS) AC_SUBST(CPPFLAGS) |