Changed MSVC compiler flag /Ot to /Ox and added /OPT:REF linker flag.
This commit is contained in:
parent
e0169f6696
commit
0fba0923c8
@ -126,8 +126,9 @@ class SM:
|
|||||||
if self.vendor == 'gcc':
|
if self.vendor == 'gcc':
|
||||||
self.compiler.AddToListVar('CFLAGS', '-O3')
|
self.compiler.AddToListVar('CFLAGS', '-O3')
|
||||||
elif self.vendor == 'msvc':
|
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:ICF')
|
||||||
|
self.compiler.AddToListVar('POSTLINKFLAGS', '/OPT:REF')
|
||||||
|
|
||||||
#Debugging
|
#Debugging
|
||||||
if AMBuild.options.debug == '1':
|
if AMBuild.options.debug == '1':
|
||||||
|
Loading…
Reference in New Issue
Block a user