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
Notes:
sideshowbarker
2024-07-17 05:19:06 +09:00
Author: https://github.com/ronak69 Commit: https://github.com/SerenityOS/serenity/commit/d720fb8845 Pull-request: https://github.com/SerenityOS/serenity/pull/22836
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
Reference in a new issue