1
0
Fork 0

Remove global LTCG on Windows build (object too large).

This commit is contained in:
John Preston 2022-12-06 18:11:17 +04:00
parent f5dab7d4b7
commit 125b9571c5
2 changed files with 0 additions and 13 deletions

View file

@ -39,9 +39,6 @@ function(init_target target_name) # init_target(my_target folder_name)
XCODE_ATTRIBUTE_LLVM_LTO $<IF:$<CONFIG:Debug>,NO,YES>
)
endif()
if (DESKTOP_APP_SPECIAL_TARGET AND WIN32 AND NOT build_win64)
set_property(TARGET ${target_name} APPEND_STRING PROPERTY STATIC_LIBRARY_OPTIONS "$<IF:$<CONFIG:Debug>,,/LTCG>")
endif()
endfunction()
# This code is not supposed to run on build machine, only on target machine.

View file

@ -53,16 +53,6 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
INTERFACE
/LARGEADDRESSAWARE # Allow more than 2 GB in 32 bit application.
)
if (DESKTOP_APP_SPECIAL_TARGET)
target_compile_options(common_options
INTERFACE
$<IF:$<CONFIG:Debug>,,/GL>
)
target_link_options(common_options
INTERFACE
$<IF:$<CONFIG:Debug>,,/LTCG>
)
endif()
endif()
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
target_compile_definitions(common_options