summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2018-12-03 09:36:36 -0500
committerAllan McRae <allan@archlinux.org>2018-12-10 11:20:02 +1000
commitb67ec905205d96ca6801626a65149724f47f36f0 (patch)
tree74c54e66e7c162e4af0cf1007c9e12c54678324d
parent36a5069a599f2f7d10eb8ad1a2074581f33ff040 (diff)
downloadpacman-b67ec905205d96ca6801626a65149724f47f36f0.tar.gz
pacman-b67ec905205d96ca6801626a65149724f47f36f0.zip
Enable additional debug flags/logging with debugoptimized builds
This lets developers run a local build with optimizations but also the added debug logging that comes with PACMAN_DEBUG being defined. Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 8837816f..394bd1f5 100644
--- a/meson.build
+++ b/meson.build
@@ -211,7 +211,7 @@ elif conf.has('HAVE_STRUCT_STATFS_F_FLAGS')
conf.set('FSSTATSTYPE', 'struct statfs')
endif
-if get_option('buildtype') == 'debug'
+if get_option('buildtype').startswith('debug')
extra_cflags = [
'-Wcast-align',
'-Wclobbered',