|
|
@ -730,8 +730,9 @@ class Vs2010Backend(backends.Backend): |
|
|
|
ET.SubElement(type_config, 'InlineFunctionExpansion').text = 'OnlyExplicitInline' |
|
|
|
ET.SubElement(type_config, 'InlineFunctionExpansion').text = 'OnlyExplicitInline' |
|
|
|
elif '/Ob2' in o_flags: |
|
|
|
elif '/Ob2' in o_flags: |
|
|
|
ET.SubElement(type_config, 'InlineFunctionExpansion').text = 'AnySuitable' |
|
|
|
ET.SubElement(type_config, 'InlineFunctionExpansion').text = 'AnySuitable' |
|
|
|
# Size-preserving flags |
|
|
|
# In modern MSVC parlance "/O1" means size optimization. |
|
|
|
if '/Os' in o_flags: |
|
|
|
# "/Os" has been deprecated. |
|
|
|
|
|
|
|
if '/O1' in o_flags: |
|
|
|
ET.SubElement(type_config, 'FavorSizeOrSpeed').text = 'Size' |
|
|
|
ET.SubElement(type_config, 'FavorSizeOrSpeed').text = 'Size' |
|
|
|
else: |
|
|
|
else: |
|
|
|
ET.SubElement(type_config, 'FavorSizeOrSpeed').text = 'Speed' |
|
|
|
ET.SubElement(type_config, 'FavorSizeOrSpeed').text = 'Speed' |
|
|
|