wscript: do not overwrite user flags
authorPaul Brossier <piem@piem.org>
Sun, 10 Feb 2013 00:51:31 +0000 (19:51 -0500)
committerPaul Brossier <piem@piem.org>
Sun, 10 Feb 2013 00:51:31 +0000 (19:51 -0500)
wscript

diff --git a/wscript b/wscript
index fa60eb361a1306d44782acfe5d454b983ddfb036..ed400898f344d7221452179634173f2192341ea0 100644 (file)
--- a/wscript
+++ b/wscript
@@ -58,7 +58,7 @@ def configure(ctx):
   from waflib import Options
   ctx.load('compiler_c')
   ctx.load('waf_unit_test')
-  ctx.env.CFLAGS = ['-g', '-Wall', '-Wextra']
+  ctx.env.CFLAGS += ['-g', '-Wall', '-Wextra']
 
   if Options.options.target_platform:
     Options.platform = Options.options.target_platform