From 912fe90f01df170ae9fd3c6a40a0e455c977f867 Mon Sep 17 00:00:00 2001 From: Madeline Busig Date: Wed, 20 Mar 2024 22:11:03 -0600 Subject: [PATCH] Enable link time optimization --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c5794ca..3f05ebc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,9 @@ 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