mirror of https://github.com/mgba-emu/mgba.git
3DS: Re-enable LTO
This commit is contained in:
parent
0fb69126a5
commit
0dcdf960d0
|
@ -196,8 +196,7 @@ list(APPEND UTIL_SRC ${CMAKE_CURRENT_BINARY_DIR}/version.c)
|
||||||
source_group("Generated sources" FILES ${CMAKE_CURRENT_BINARY_DIR}/version.c)
|
source_group("Generated sources" FILES ${CMAKE_CURRENT_BINARY_DIR}/version.c)
|
||||||
|
|
||||||
# Advanced settings
|
# Advanced settings
|
||||||
if(NOT DEFINED 3DS AND NOT (CMAKE_C_COMPILER_ID STREQUAL "GNU" AND CMAKE_COMPILER_VERSION VERSION_LESS "4.5"))
|
if(NOT (CMAKE_C_COMPILER_ID STREQUAL "GNU" AND CMAKE_COMPILER_VERSION VERSION_LESS "4.5"))
|
||||||
# LTO appears to make 3DS binary slower
|
|
||||||
set(DEFAULT_LTO ON)
|
set(DEFAULT_LTO ON)
|
||||||
else()
|
else()
|
||||||
set(DEFAULT_LTO OFF)
|
set(DEFAULT_LTO OFF)
|
||||||
|
|
Loading…
Reference in New Issue