From: Paul Brossier Date: Sat, 24 Dec 2016 18:10:40 +0000 (+0100) Subject: wscript: avoid overwritting CFLAGS' -O in release mode X-Git-Tag: 0.4.4~19 X-Git-Url: https://git.aubio.org/?p=aubio.git;a=commitdiff_plain;h=c04346de33fb326aa6ea3abb9f3b07218b12cf7d wscript: avoid overwritting CFLAGS' -O in release mode --- diff --git a/wscript b/wscript index bbfedf79..d8afc03b 100644 --- a/wscript +++ b/wscript @@ -139,10 +139,8 @@ def configure(ctx): if ctx.env.CC_NAME != 'msvc': # enable debug symbols and configure warnings ctx.env.CFLAGS += ['-g', '-Wall', '-Wextra'] - if ctx.options.build_type == "release": - # set optimization level - ctx.env.CFLAGS += ['-O2'] - else: + if ctx.options.build_type == "debug": + # no optimization in debug mode ctx.env.CFLAGS += ['-O0'] else: # enable debug symbols