You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make Whole Program Optimization (WPO) optional on MSVC (#532)
* Add GZ_MSVC_WPO option to toggle Whole Program Optimization
This adds a \GZ_MSVC_WPO\ option (default ON) that controls the
injection of \/GL\ and \/LTCG\ on MSVC. It also fixes a bug where
\/LTCG\ was only applied to RelWithDebInfo shared linker flags, and not
to Release or other target types. \/INCREMENTAL:NO\ is appropriately
restricted to RelWithDebInfo.
Generated-By: Gemini 3.1 Pro
Signed-off-by: Addisu Z. Taddese <addisuzt@intrinsic.ai>
* Add /bigobj flag to MSVC_MINIMAL_FLAGS
Increases the number of sections in an object file to prevent
C1128 errors when building complex templated code with Whole
Program Optimization (/GL) enabled.
Generated-By: Gemini 3.0 Pro
---------
Signed-off-by: Addisu Z. Taddese <addisuzt@intrinsic.ai>
Co-authored-by: Addisu Z. Taddese <addisu@openrobotics.org>
(cherry picked from commit a3c8e29)
# Conflicts:
# cmake/IgnSetCompilerFlags.cmake
0 commit comments