All: Enable link-time optimization

This commit is contained in:
Jeffrey Pfau 2015-02-20 23:09:11 -08:00
parent 1994977c8f
commit 07feb10f6d
2 changed files with 2 additions and 0 deletions

View File

@ -60,6 +60,7 @@ Misc:
- Debugger: Rename read/write commands
- Qt: Optimize logo drawing
- Qt: Move frame upload back onto main thread
- All: Enable link-time optimization
0.1.1: (2015-01-24)
Bugfixes:

View File

@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 2.6)
project(mGBA C)
set(BINARY_NAME mgba CACHE INTERNAL "Name of output binaries")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -std=gnu99")
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -flto")
set(USE_CLI_DEBUGGER ON CACHE BOOL "Whether or not to enable the CLI-mode ARM debugger")
set(USE_GDB_STUB ON CACHE BOOL "Whether or not to enable the GDB stub ARM debugger")
set(USE_FFMPEG ON CACHE BOOL "Whether or not to enable FFmpeg support")