mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:47:35 +00:00
CMake: Set CMAKE_COLOR_DIAGNOSTICS
to ON
for colored diagnostics
This patch removes the explicit compile flag that only works for g++ (`-fdiagnostics-color=always`; clang++ needs `-fcolor-diagnostics`) and uses CMake's built in variable that can control color output. Now both compilers should output colored diagnostics.
This commit is contained in:
parent
534eeb6c4b
commit
d720fb8845
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,8 @@ set(CMAKE_CXX_STANDARD 20)
|
|||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
|
||||
set(CMAKE_COLOR_DIAGNOSTICS ON)
|
||||
|
||||
add_compile_options(-Wall)
|
||||
add_compile_options(-Wextra)
|
||||
|
||||
|
@ -11,7 +13,6 @@ add_compile_options(-Wno-invalid-offsetof)
|
|||
add_compile_options(-Wno-unknown-warning-option)
|
||||
add_compile_options(-Wno-unused-command-line-argument)
|
||||
|
||||
add_compile_options(-fdiagnostics-color=always)
|
||||
add_compile_options(-fno-exceptions)
|
||||
|
||||
add_compile_options(-ffp-contract=off)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue