Skip to content

Commit

Permalink
Fix minsize optimization for vs backend
Browse files Browse the repository at this point in the history
Fixes #12265
  • Loading branch information
bruchar1 committed Jan 10, 2024
1 parent ce2db13 commit 4c284a4
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 @@ -1366,7 +1366,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 4c284a4

Please sign in to comment.