mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Merge b1f1f319d7
into f638f84185
This commit is contained in:
commit
60fd075da4
1 changed files with 10 additions and 2 deletions
|
@ -29,9 +29,17 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|||
if (NOT MSVC)
|
||||
add_cxx_compile_options(-ggdb3)
|
||||
endif()
|
||||
add_cxx_compile_options(-Og)
|
||||
if ("$ENV{CXXFLAGS}" MATCHES "(^| )(-O(fast|.?))( |$)")
|
||||
add_cxx_compile_options(${CMAKE_MATCH_0})
|
||||
else ()
|
||||
add_cxx_compile_options(-Og)
|
||||
endif()
|
||||
else()
|
||||
add_cxx_compile_options(-O2)
|
||||
if ("$ENV{CXXFLAGS}" MATCHES "(^| )(-O(fast|.?))( |$)")
|
||||
add_cxx_compile_options(${CMAKE_MATCH_0})
|
||||
else ()
|
||||
add_cxx_compile_options(-O2)
|
||||
endif()
|
||||
if (NOT MSVC)
|
||||
add_cxx_compile_options(-g1)
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue