Unverified Commit c823b4bf authored by Arisotura's avatar Arisotura Committed by GitHub
Browse files

Merge pull request #623 from nadiaholmquist/feature/debug-og

Use -Og for debug builds
parents a7a28637 b341514a
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment