Skip to content

Commit

Permalink
Disable LTCG for 64 bit Windows build.
Browse files Browse the repository at this point in the history
It now fails with:

Telegram.dir\Release\Telegram.iobj : fatal error LNK1248: image size
(1029C441A) exceeds maximum allowable size (FFFFFFFF)
  • Loading branch information
john-preston committed Nov 27, 2021
1 parent 7332624 commit fdd7abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init_target.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ 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)
if (DESKTOP_APP_SPECIAL_TARGET AND WIN32 AND NOT build_win64)
set_target_properties(${target_name} PROPERTIES
INTERPROCEDURAL_OPTIMIZATION_RELEASE True
INTERPROCEDURAL_OPTIMIZATION_RELWITHDEBINFO True
Expand Down

0 comments on commit fdd7abd

Please sign in to comment.