projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dae3292
)
wscript: avoid overwritting CFLAGS' -O in release mode
author
Paul Brossier
<piem@piem.org>
Sat, 24 Dec 2016 18:10:40 +0000
(19:10 +0100)
committer
Paul Brossier
<piem@piem.org>
Sat, 24 Dec 2016 18:10:40 +0000
(19:10 +0100)
wscript
patch
|
blob
|
history
diff --git
a/wscript
b/wscript
index
bbfedf7
..
d8afc03
100644
(file)
--- 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