updates SConstruct compile flags for posix and darwin

This commit is contained in:
Peter Thorson
2012-10-12 06:27:01 -05:00
parent b73f1526b6
commit 492ada4788

View File

@@ -61,9 +61,13 @@ if env['PLATFORM'].startswith('win'):
elif env['PLATFORM'] == 'posix':
env.Append(CPPDEFINES = ['NDEBUG'])
env.Append(CCFLAGS = ['-Wall', '-fno-strict-aliasing'])
env.Append(CCFLAGS = ['-O3', '-fomit-frame-pointer', '-march=core2'])
env.Append(CCFLAGS = ['-O3', '-fomit-frame-pointer'])
#env['LINKFLAGS'] = ''
elif env['PLATFORM'] == 'darwin':
env.Append(CPPDEFINES = ['NDEBUG'])
env.Append(CCFLAGS = ['-Wall', '-Wcast-align'])
env.Append(CCFLAGS = ['-O3', '-fomit-frame-pointer'])
#env['LINKFLAGS'] = ''
if env['PLATFORM'].startswith('win'):
env['LIBPATH'] = env['BOOST_LIBS']