Changed MSVC compiler flag /Ot to /Ox and added /OPT:REF linker flag.

This commit is contained in:
Scott Ehlert 2010-05-14 02:42:08 -05:00
parent e0169f6696
commit 0fba0923c8

View File

@ -126,8 +126,9 @@ class SM:
if self.vendor == 'gcc':
self.compiler.AddToListVar('CFLAGS', '-O3')
elif self.vendor == 'msvc':
self.compiler.AddToListVar('CFLAGS', '/Ot')
self.compiler.AddToListVar('CFLAGS', '/Ox')
self.compiler.AddToListVar('POSTLINKFLAGS', '/OPT:ICF')
self.compiler.AddToListVar('POSTLINKFLAGS', '/OPT:REF')
#Debugging
if AMBuild.options.debug == '1':