diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-05-17 15:43:26 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-05-17 15:43:26 +0200 |
commit | cc150354fd91c05ef863137cdf53eb5a413d76b1 (patch) | |
tree | 6ec3a18316234982183b1c0bff389398697c8d41 | |
parent | 3abc1401a11d07c6a8e632098a6682630f4a1ea9 (diff) |
Added --release flag to compile without debugging info.
-rw-r--r-- | SConstruct | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -6,6 +6,8 @@ env = Environment( common_sources = [] +AddOption('--release', action = 'store_true') + if env['PLATFORM'] == 'darwin': env.Append(CPPFLAGS = '') env.Append(LINKFLAGS = '') @@ -19,6 +21,9 @@ else: env.ParseConfig('sdl-config --cflags --libs') env.ParseConfig('pkg-config --cflags --libs ftgl') +if not GetOption('release'): + env.Append(CPPFLAGS = ['-Wall', '-g']) + env.Program('foo', common_sources + Glob('*.cpp')) # vim: syn=python |