More scons fixes

This commit is contained in:
Simon Robertshaw 2012-08-04 19:30:03 +01:00
parent d684136415
commit 82d2bcc7c2

View File

@ -137,16 +137,16 @@ if(GetOption('beta')):
env.Append(CPPDEFINES='BETA')
if(GetOption('snapshot')):
env.Append(CPPDEFINES={'SNAPSHOT_ID': GetOption('snapshot')})
env.Append(CPPDEFINES=['SNAPSHOT_ID=' + GetOption('snapshot')])
env.Append(CPPDEFINES='SNAPSHOT')
else:
env.Append(CPPDEFINES={"SNAPSHOT_ID": int(time.time())})
env.Append(CPPDEFINES=["SNAPSHOT_ID=" + str(int(time.time()))])
if(GetOption('save-version')):
env.Append(CPPDEFINES={'SAVE_VERSION': GetOption('major-version')})
env.Append(CPPDEFINES=['SAVE_VERSION=' + GetOption('major-version')])
if(GetOption('minor-version')):
env.Append(CPPDEFINES={'MINOR_VERSION': GetOption('minor-version')})
env.Append(CPPDEFINES=['MINOR_VERSION=' + GetOption('minor-version')])
if(GetOption('release')):
env.Append(CCFLAGS=['-O3', '-ftree-vectorize', '-funsafe-math-optimizations', '-ffast-math', '-fomit-frame-pointer', '-funsafe-loop-optimizations', '-Wunsafe-loop-optimizations'])