shithub: aubio

Download patch

ref: fb6a0fffbdf5e1275574d5c796c2549ea9ca3020
parent: 578d3a2304f3f69ea6c8aafd28ebd3c2d3439a73
author: Paul Brossier <piem@piem.org>
date: Sat Dec 24 05:45:22 EST 2016

wscript: improve --build-type description, use -O0 in debug mode

--- a/wscript
+++ b/wscript
@@ -51,7 +51,7 @@
             default = "release",
             choices = ('debug', 'release'),
             dest = 'build_type',
-            help = 'whether to compile with (--build_type=release) or without (--build_type=debug) '\
+            help = 'whether to compile with (--build-type=release) or without (--build-type=debug) '\
               ' compiler opimizations [default: release]')
     add_option_enable_disable(ctx, 'fftw3f', default = False,
             help_str = 'compile with fftw3f instead of ooura (recommended)',
@@ -142,6 +142,8 @@
         if ctx.options.build_type == "release":
             # set optimization level
             ctx.env.CFLAGS += ['-O2']
+        else:
+            ctx.env.CFLAGS += ['-O0']
     else:
         # enable debug symbols
         ctx.env.CFLAGS += ['/Z7', '/FS']