mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:18:12 +00:00
Meta: Support -DCMAKE_BUILD_TYPE=DEBUG for Lagom builds
It's exhausting to have to do a full rebuild when stashing/unstashing these changes locally.
This commit is contained in:
parent
a264cf79c4
commit
b4a8d2a19f
1 changed files with 8 additions and 2 deletions
|
@ -3,13 +3,19 @@ include(${CMAKE_CURRENT_LIST_DIR}/common_compile_options.cmake)
|
|||
add_compile_options(-Wno-maybe-uninitialized)
|
||||
add_compile_options(-Wno-shorten-64-to-32)
|
||||
add_compile_options(-fsigned-char)
|
||||
add_compile_options(-g1)
|
||||
add_compile_options(-ggnu-pubnames)
|
||||
add_compile_options(-O2)
|
||||
if (NOT WIN32)
|
||||
add_compile_options(-fPIC)
|
||||
endif()
|
||||
|
||||
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
add_compile_options(-ggdb3)
|
||||
add_compile_options(-Og)
|
||||
else()
|
||||
add_compile_options(-O2)
|
||||
add_compile_options(-g1)
|
||||
endif()
|
||||
|
||||
function(add_linker_flag_if_supported flag)
|
||||
include(CheckLinkerFlag)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue