diff SConstruct @ 36:74196ff1cb98

-Added debug symbols option for GCC -Fixed SSI bug - too early to try -1 for the other bits - oops again! -Added boost libraries to EC2 script
author tomwalters
date Fri, 26 Feb 2010 16:58:26 +0000
parents 9122efd2b227
children 814dd2a74cdb
line wrap: on
line diff
--- a/SConstruct	Fri Feb 26 07:16:34 2010 +0000
+++ b/SConstruct	Fri Feb 26 16:58:26 2010 +0000
@@ -62,6 +62,9 @@
 options.Add(BoolVariable('mingw', 
                          'Compile on Windows using mingw rather than msvc',
                          False))
+options.Add(BoolVariable('symbols', 
+                         'Add debuging symbols when compiling on gcc',
+                         False))
 
 # Environment variables
 env = Environment(options = options, ENV = os.environ)
@@ -112,6 +115,8 @@
   env['STRIP'] = 'strip'
   env.AppendUnique(CPPFLAGS = ['-Wall'])
   env.AppendUnique(CPPFLAGS = ['-O3', '-fomit-frame-pointer'])
+  if env['symbols']:
+    env.AppendUnique(CPPFLAGS = ['-g'])
   if env['mingw']:
     if not env['PLATFORM'] == 'win32':
       print('Cross-compilation for Windows is not supported')