From ddbc5f9e9f94f9180d9d0cd757f810c9b05824fc Mon Sep 17 00:00:00 2001 From: Be Date: Sun, 7 Mar 2021 12:21:54 -0600 Subject: CMake: add comment why /OPT:ICF is not used --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b5aaf248f..9fab375020 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -134,6 +134,8 @@ if(MSVC) string(REPLACE "/RTC1" "" CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG}") else() # Reduce the size of the binary in Release & RelWithDebInfo builds + # Do not use /OPT:ICF because it has no effect. + # https://github.com/mixxxdj/mixxx/pull/3660#pullrequestreview-600137258 add_link_options(/OPT:REF) # /INCREMENTAL is incompatible with /OPT:REF string(REPLACE "/INCREMENTAL" "/INCREMENTAL:NO" CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}") -- cgit v1.2.3