Skip to content

Commit

Permalink
Fix minsize optimization for vs backend
Browse files Browse the repository at this point in the history
  • Loading branch information
bruchar1 authored and nirbheek committed Feb 6, 2024
1 parent 80ed1df commit 9659a8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/backend/vs2010backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,7 @@ def add_non_makefile_vcxproj_elements(
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:
Expand Down

0 comments on commit 9659a8e

Please sign in to comment.