From 492ada478844372aae4d59738d27952b4828383b Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Fri, 12 Oct 2012 06:27:01 -0500 Subject: [PATCH] updates SConstruct compile flags for posix and darwin --- SConstruct | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index 98c655d530..2f03f0b6c3 100644 --- a/SConstruct +++ b/SConstruct @@ -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']