1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:57:35 +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:
Linus Groh 2022-05-14 15:07:12 +02:00
parent 4472cab81a
commit ee721978f6
5 changed files with 76 additions and 75 deletions

View file

@ -60,22 +60,7 @@ if (ENABLE_FUZZERS_LIBFUZZER OR ENABLE_FUZZERS_OSSFUZZ)
endif()
include(wasm_spec_tests)
add_compile_options(-fsigned-char)
add_compile_options(-Wno-unknown-warning-option -Wno-literal-suffix -Wno-implicit-const-int-float-conversion)
add_compile_options(-O2)
add_compile_options(-Wall -Wextra -Werror)
add_compile_options(-fPIC -g)
add_compile_options(-Wno-maybe-uninitialized)
add_compile_options(-fno-exceptions)
add_compile_options(-fdiagnostics-color=always)
if (NOT ENABLE_FUZZERS)
add_compile_options(-fno-semantic-interposition)
endif()
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
include(lagom_compile_options)
include(GNUInstallDirs) # make sure to include before we mess w/RPATH