mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +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
Notes:
sideshowbarker
2024-07-19 04:16:06 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/a9fb317a639 Pull-request: https://github.com/SerenityOS/serenity/pull/3009
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…
Reference in a new issue