ARM7: Force disable LTO on two files to work around a GCC bug

This commit is contained in:
Jeffrey Pfau 2015-09-01 00:30:02 -07:00
parent 88c1f20c4b
commit 1582a25ca9
2 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@ Misc:
- GBA: Attempting to save a screenshot-style savestate should be allowed without libpng
- GBA: Better memory handling with PNG savestates
- GBA Audio: Allow GBAAVStream to have no video callback
- ARM7: Force disable LTO on two files to work around a GCC bug
0.3.0: (2015-08-16)
Features:

View File

@ -180,6 +180,7 @@ endif()
if(APPLE OR CMAKE_C_COMPILER_ID STREQUAL "GNU" AND BUILD_LTO)
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -flto")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -flto")
set_source_files_properties(${CMAKE_SOURCE_DIR}/src/arm/isa-arm.c ${CMAKE_SOURCE_DIR}/src/arm/isa-thumb.c PROPERTIES COMPILE_FLAGS -fno-lto)
endif()
if(BUILD_BBB OR BUILD_RASPI OR BUILD_PANDORA)