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>
This commit is contained in:
Dave Reisner 2018-12-03 09:36:36 -05:00 committed by Allan McRae
parent 36a5069a59
commit b67ec90520

View file

@ -211,7 +211,7 @@ elif conf.has('HAVE_STRUCT_STATFS_F_FLAGS')
conf.set('FSSTATSTYPE', 'struct statfs') conf.set('FSSTATSTYPE', 'struct statfs')
endif endif
if get_option('buildtype') == 'debug' if get_option('buildtype').startswith('debug')
extra_cflags = [ extra_cflags = [
'-Wcast-align', '-Wcast-align',
'-Wclobbered', '-Wclobbered',