[vala/staging] build: Add --enable-debug configure option
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] build: Add --enable-debug configure option
- Date: Thu, 22 Nov 2018 14:14:43 +0000 (UTC)
commit 90b0ae52fca51b2b34b53bf1723d5ee1c82bd75d
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Thu Nov 22 14:14:28 2018 +0100
build: Add --enable-debug configure option
configure.ac | 6 ++++++
1 file changed, 6 insertions(+)
---
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]