mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-06-27 09:29:40 -06:00
work around building with LTO causing an ICE in gcc 15.1.0
This commit is contained in:
@ -7,3 +7,9 @@ endif()
|
||||
|
||||
string(REPLACE "-O2" "-O3" CMAKE_C_FLAGS_RELEASE_INIT "${CMAKE_C_FLAGS_RELEASE_INIT}")
|
||||
string(REPLACE "-O2" "-O3" CMAKE_CXX_FLAGS_RELEASE_INIT "${CMAKE_CXX_FLAGS_RELEASE_INIT}")
|
||||
|
||||
# Building with LTO causes an internal compiler error in GCC 15.1.0
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL GNU AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 15.0 AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 15.1.1)
|
||||
set(ENABLE_LTO_RELEASE OFF CACHE BOOL "Enable LTO for release builds" FORCE)
|
||||
set(ENABLE_LTO OFF CACHE BOOL "Enable LTO" FORCE)
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user