File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -890,7 +890,10 @@ endif()
890890# because enabling it causes the MinGW linker (ld) to run out of memory or exhaust the maximum
891891# number of exported symbols, or emit "multiple definition" errors during LTO code generation.
892892# While this makes the binary fatter and slower, it prevents fatal build failures.
893- if (CMAKE_BUILD_TYPE STREQUAL "Release" AND NOT WIN32 )
893+ # The same escape hatch (-DRS_NO_LTO=ON) also works around lto1 internal compiler
894+ # errors (segfault in the IPA icf pass) with the older GCC 10 LTO plugin, e.g. when
895+ # building on Debian 11 to produce a portable (old-glibc) AppImage.
896+ if (CMAKE_BUILD_TYPE STREQUAL "Release" AND NOT WIN32 AND NOT RS_NO_LTO)
894897 set_property (TARGET ${PROJECT_NAME } PROPERTY INTERPROCEDURAL_OPTIMIZATION ON )
895898endif ()
896899
You can’t perform that action at this time.
0 commit comments