Permalink
Browse files

Revert "SConstruct: Added generic release optimisation flags."

This reverts commit e1812c1.
  • Loading branch information...
1 parent 2b7e3e7 commit de25afb0a1b25d0c8a5f65a8723a6af3efc8620b Miguel Boton committed Nov 29, 2011
Showing with 7 additions and 12 deletions.
  1. +7 −12 neo/SConstruct
View
@@ -313,23 +313,18 @@ if ( BUILD == 'debug-all' ):
if ( ID_MCHECK == '0' ):
ID_MCHECK = '1'
elif ( BUILD == 'debug' ):
- OPTCPPFLAGS = [ '-g', '-O1', '-D_DEBUG', '-fkeep-inline-functions']
+ OPTCPPFLAGS = [ '-g', '-O1', '-D_DEBUG' ]
if ( ID_MCHECK == '0' ):
ID_MCHECK = '1'
elif ( BUILD == 'release' ):
- if( cpu == 'x86' ):
- # -fomit-frame-pointer: "-O also turns on -fomit-frame-pointer on machines where doing so does not interfere with debugging."
- # on x86 have to set it explicitely
- # -finline-functions: implicit at -O3
- # -fschedule-insns2: implicit at -O2
- # no-unsafe-math-optimizations: that should be on by default really. hit some wonko bugs in physics code because of that
- OPTCPPFLAGS = [ '-O3', '-march=pentium3', '-Winline', '-ffast-math', '-fno-unsafe-math-optimizations', '-fomit-frame-pointer' ]
- else:
- # generic optimisation flags for platforms that don't have hand tuned flags.
- OPTCPPFLAGS = [ '-O3', '-Winline', '-ffast-math', '-fno-unsafe-math-optimizations' ]
+ # -fomit-frame-pointer: "-O also turns on -fomit-frame-pointer on machines where doing so does not interfere with debugging."
+ # on x86 have to set it explicitely
+ # -finline-functions: implicit at -O3
+ # -fschedule-insns2: implicit at -O2
+ # no-unsafe-math-optimizations: that should be on by default really. hit some wonko bugs in physics code because of that
+ OPTCPPFLAGS = [ '-O3', '-march=pentium3', '-Winline', '-ffast-math', '-fno-unsafe-math-optimizations', '-fomit-frame-pointer' ]
if ( ID_MCHECK == '0' ):
ID_MCHECK = '2'
-
else:
print 'Unknown build configuration ' + BUILD
sys.exit(0)

0 comments on commit de25afb

Please sign in to comment.