Skip to content

Commit

Permalink
Disable LTO on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ryze312 committed Jun 12, 2024
1 parent 9d5eb73 commit 12e701c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -225,4 +225,9 @@ foreach (COMPILER_DEF IN LISTS ABADDON_COMPILER_DEFS)
target_compile_definitions(abaddon PRIVATE "${COMPILER_DEF}")
endforeach ()

set_property(TARGET abaddon PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
# LTO breaks on Windows
# Due to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108383
# And other weirdness
if (NOT WIN32)
set_property(TARGET abaddon PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
endif ()

0 comments on commit 12e701c

Please sign in to comment.