all repos — mgba @ 0dcdf960d03ae569dda1bd815f06c3011c023512

mGBA Game Boy Advance Emulator

3DS: Re-enable LTO
Vicki Pfau vi@endrift.com
Sun, 31 Mar 2019 11:31:14 -0700
commit

0dcdf960d03ae569dda1bd815f06c3011c023512

parent

0fb69126a5cda995f723882e4f79a4d653c78f79

1 files changed, 1 insertions(+), 2 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -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) # Advanced settings -if(NOT DEFINED 3DS AND NOT (CMAKE_C_COMPILER_ID STREQUAL "GNU" AND CMAKE_COMPILER_VERSION VERSION_LESS "4.5")) - # LTO appears to make 3DS binary slower +if(NOT (CMAKE_C_COMPILER_ID STREQUAL "GNU" AND CMAKE_COMPILER_VERSION VERSION_LESS "4.5")) set(DEFAULT_LTO ON) else() set(DEFAULT_LTO OFF)