[waf] add shortcut to compile in debug mode
authorPaul Brossier <piem@piem.org>
Thu, 31 Jan 2019 01:42:45 +0000 (02:42 +0100)
committerPaul Brossier <piem@piem.org>
Thu, 31 Jan 2019 01:42:45 +0000 (02:42 +0100)
wscript

diff --git a/wscript b/wscript
index 0fef048..2d1630a 100644 (file)
--- a/wscript
+++ b/wscript
@@ -45,6 +45,9 @@ def options(ctx):
             help = 'whether to compile with (--build-type=release)' \
                     ' or without (--build-type=debug)' \
                     ' compiler opimizations [default: release]')
+    ctx.add_option('--debug', action = 'store_const',
+            dest = 'build_type', const = 'debug',
+            help = 'build in debug mode (see --build-type)')
     add_option_enable_disable(ctx, 'fftw3f', default = False,
             help_str = 'compile with fftw3f instead of ooura (recommended)',
             help_disable_str = 'do not compile with fftw3f')