Fix minsize optimization for vs backend

Fixes #12265
pull/12823/head
Charles Brunet 10 months ago committed by Nirbheek Chauhan
parent 80ed1dfa7f
commit 9659a8e6cf
  1. 2
      mesonbuild/backend/vs2010backend.py

@ -1368,7 +1368,7 @@ class Vs2010Backend(backends.Backend):
elif '/Ob2' in o_flags:
ET.SubElement(clconf, 'InlineFunctionExpansion').text = 'AnySuitable'
# Size-preserving flags
if '/Os' in o_flags:
if '/Os' in o_flags or '/O1' in o_flags:
ET.SubElement(clconf, 'FavorSizeOrSpeed').text = 'Size'
# Note: setting FavorSizeOrSpeed with clang-cl conflicts with /Od and can make debugging difficult, so don't.
elif '/Od' not in o_flags:

Loading…
Cancel
Save