From cc150354fd91c05ef863137cdf53eb5a413d76b1 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Mon, 17 May 2010 15:43:26 +0200 Subject: Added --release flag to compile without debugging info. --- SConstruct | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'SConstruct') 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 -- cgit v1.2.3