From f862b85478065d5a23a9a3ff48c1093422eec278 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 31 Jan 2019 02:42:45 +0100 Subject: [PATCH] [waf] add shortcut to compile in debug mode --- wscript | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wscript b/wscript index 0fef0484..2d1630a4 100644 --- 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') -- 2.11.0