mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:27:35 +00:00
Build: Clang should get -Werror too
I accidentally removed it in a619943001
and #3002 only restored
it for gcc.
This commit is contained in:
parent
adb83d3adc
commit
a9fb317a63
1 changed files with 2 additions and 2 deletions
|
@ -40,9 +40,9 @@ add_custom_target(check-style
|
|||
USES_TERMINAL
|
||||
)
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -std=c++2a -fdiagnostics-color=always")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror -std=c++2a -fdiagnostics-color=always")
|
||||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fconcepts -Werror")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fconcepts")
|
||||
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-overloaded-virtual")
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue