mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
Use -Og for debug builds
This commit is contained in:
@ -20,6 +20,10 @@ else()
|
||||
option(ENABLE_LTO "Enable link-time optimization" OFF)
|
||||
endif()
|
||||
|
||||
if (CMAKE_BUILD_TYPE STREQUAL Debug)
|
||||
add_compile_options(-Og)
|
||||
endif()
|
||||
|
||||
if(ENABLE_LTO)
|
||||
add_compile_options(-O3 -flto)
|
||||
add_link_options(-flto)
|
||||
|
Reference in New Issue
Block a user