We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad754fb commit 3af6dbfCopy full SHA for 3af6dbf
1 file changed
CMakeLists.txt
@@ -19,6 +19,8 @@ if (MSVC)
19
# - smaller binaries are good
20
# - as well as the direct increase, incremental linking breaks the SizeBench tool
21
add_link_options("$<$<NOT:$<CONFIG:Debug>>:/INCREMENTAL:NO>")
22
+ # COMDAT folding; drops off another 1MB
23
+ add_link_options("$<$<NOT:$<CONFIG:Debug>>:/OPT:ICF>")
24
endif ()
25
26
if (${CMAKE_PROJECT_VERSION_TWEAK})
0 commit comments