summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--SConstruct5
1 files changed, 5 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 7adadb0..7cc4dc2 100644
--- a/SConstruct
+++ b/SConstruct
@@ -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