From e18f275aaa0e702233d267e83559a4fdaa37cec6 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sun, 31 Mar 2019 11:31:14 -0700 Subject: [PATCH] 3DS: Re-enable LTO --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index df3aa8cff..6cf2a6113 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -197,8 +197,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)