scons: fixed build error with optimizations enabled
This commit is contained in:
parent
fade467e75
commit
893fdeea2f
|
@ -130,7 +130,7 @@ print "base CCFLAGS:",env['CCFLAGS']
|
||||||
if env['DEBUG']:
|
if env['DEBUG']:
|
||||||
env.Append(CPPDEFINES=["_DEBUG"], CCFLAGS = ['-g'])
|
env.Append(CPPDEFINES=["_DEBUG"], CCFLAGS = ['-g'])
|
||||||
else:
|
else:
|
||||||
env.Append(CCFLAGS = ['O2'])
|
env.Append(CCFLAGS = ['-O2'])
|
||||||
|
|
||||||
if env['PLATFORM'] != 'win32' and env['PLATFORM'] != 'cygwin' and env['CREATE_AVI']:
|
if env['PLATFORM'] != 'win32' and env['PLATFORM'] != 'cygwin' and env['CREATE_AVI']:
|
||||||
env.Append(CPPDEFINES=["CREATE_AVI"])
|
env.Append(CPPDEFINES=["CREATE_AVI"])
|
||||||
|
|
Loading…
Reference in New Issue