win: Optimize for size

This commit is contained in:
Cheng Zhao 2015-04-11 23:27:41 +08:00
parent f3c83b55dd
commit 2e7b3f0d78

View file

@ -209,8 +209,10 @@
'abstract': 1,
'msvs_settings': {
'VCCLCompilerTool': {
'Optimization': '2', # 2 = /Os
'FavorSizeOrSpeed': '1', # 1 = /Ot
# 1, optimizeMinSpace, Minimize Size (/O1)
'Optimization': '1',
# 2, favorSize - Favor small code (/Os)
'FavorSizeOrSpeed': '2',
# See http://msdn.microsoft.com/en-us/library/47238hez(VS.71).aspx
'InlineFunctionExpansion': '2', # 2 = max
# See http://msdn.microsoft.com/en-us/library/2kxx5t2c(v=vs.80).aspx