mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
Merge b1f1f319d7
into d6bcd3fb0b
This commit is contained in:
commit
fb6e249b08
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()
|
||||
if ("$ENV{CXXFLAGS}" MATCHES "(^| )(-O(fast|.?))( |$)")
|
||||
add_cxx_compile_options(${CMAKE_MATCH_0})
|
||||
else ()
|
||||
add_cxx_compile_options(-Og)
|
||||
endif()
|
||||
else()
|
||||
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