Mercurial > hg > aimc
diff trunk/SConstruct @ 309:1c58a6f354e2
-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 | ed91095d9240 |
children | 1705e25d5a59 |
line wrap: on
line diff
--- a/trunk/SConstruct Fri Feb 26 07:16:34 2010 +0000 +++ b/trunk/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')