Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#19 set '-O2' option in SConstruct file

Unstable (example)
open
None
5
2013-05-07
2013-05-07
henshao
No

I wonder why not set ‘-O2’ options to gcc, so may guy don't know this option. it is the simplest way to improve performance.

elif platform.startswith('linux-gcc'):
env.Tool( 'default' )
env.Append( LIBS = ['pthread'], CCFLAGS = "-Wall -g -O2" )
env['SHARED_LIB_ENABLED'] = True

Discussion