mirror of https://github.com/mgba-emu/mgba.git
All: Fix gcc<4.5 build
This commit is contained in:
parent
44c6e94f8b
commit
667dafb347
|
@ -167,7 +167,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)
|
||||
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
|
||||
set(DEFAULT_LTO ON)
|
||||
else()
|
||||
|
|
Loading…
Reference in New Issue