mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 11:18:13 +00:00
Meta: Move compiler flags into standalone CMake files
This way we can have all of them in a single place, similar to how we structure options added via the serenity_option() macro.
This commit is contained in:
parent
4472cab81a
commit
ee721978f6
5 changed files with 76 additions and 75 deletions
14
Meta/CMake/lagom_compile_options.cmake
Normal file
14
Meta/CMake/lagom_compile_options.cmake
Normal file
|
@ -0,0 +1,14 @@
|
|||
include(${CMAKE_CURRENT_LIST_DIR}/common_compile_options.cmake)
|
||||
|
||||
add_compile_options(-Wno-implicit-const-int-float-conversion)
|
||||
add_compile_options(-Wno-literal-suffix)
|
||||
add_compile_options(-Wno-maybe-uninitialized)
|
||||
add_compile_options(-Wno-unknown-warning-option)
|
||||
add_compile_options(-fsigned-char)
|
||||
add_compile_options(-fno-exceptions)
|
||||
add_compile_options(-fdiagnostics-color=always)
|
||||
add_compile_options(-fPIC -g)
|
||||
add_compile_options(-O2)
|
||||
if (NOT ENABLE_FUZZERS)
|
||||
add_compile_options(-fno-semantic-interposition)
|
||||
endif()
|
Loading…
Add table
Add a link
Reference in a new issue