From 30e5a4a058d96c9b29c335659cb5d6b115230cea Mon Sep 17 00:00:00 2001 From: Myles Busig Date: Fri, 13 Sep 2024 15:53:19 -0700 Subject: [PATCH] Disable LTO Causes issues on ARM platforms when mixing Thumb and ARM code. --- CMakeLists.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3f05ebc..c5794ca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,9 +3,6 @@ cmake_minimum_required(VERSION 3.5) project(gba_display_bitmap CXX C ASM) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) -# Enable link time optimization for this project and all libraries -add_compile_options("-flto") - add_executable(${PROJECT_NAME}) # Normal source and header files