disable debug in production builds

by default all debug (including assert and cast checks) is disabled in
production builds
This commit is contained in:
John Cupitt 2012-03-02 14:19:32 +00:00
parent c4a5831238
commit 3297400952
3 changed files with 2 additions and 5 deletions

View File

@ -13,6 +13,7 @@
- never use IM ping to get a header, fixes BMP load
- set @filename for non-vips formats in vips7 compat layer
- make Xres/Yres double
- completely disable debug by default in production builds
20/8/11 started 7.27.0
- version bump for new dev cycle

4
TODO
View File

@ -1,10 +1,6 @@
blocking bugs
=============
- turning on all debug in object.c causes huge mem use?
seems to be when making a string for a set of flags?
- none!

View File

@ -92,7 +92,7 @@ AC_DEFINE_UNQUOTED(G_LOG_DOMAIN, "VIPS", [Domain for glib logging messages.])
# disable debugging by default for production releases
m4_define([debug_default],
m4_if(m4_eval(vips_minor_version() % 2), [1], [yes], [minimum]))
m4_if(m4_eval(vips_minor_version() % 2), [1], [yes], [no]))
AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug=@<:@no/minimum/yes@:>@],