Commit 825d344d by Nicolas Capens Committed by Nicolas Capens

Only enable Clang-specific errors on Clang.

-W[error=]unused-lambda-capture is not recognized by GCC. Change-Id: I6d1bfc470c4afc0e72b76d2a26efb85eb8d8c8fb Reviewed-on: https://swiftshader-review.googlesource.com/c/22368Reviewed-by: 's avatarTakuto Ikuta <tikuta@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Tested-by: 's avatarTakuto Ikuta <tikuta@google.com>
parent 6e8ec338
...@@ -203,9 +203,12 @@ else() ...@@ -203,9 +203,12 @@ else()
set_cpp_flag("-Werror=reorder") set_cpp_flag("-Werror=reorder")
set_cpp_flag("-Werror=sign-compare") set_cpp_flag("-Werror=sign-compare")
set_cpp_flag("-Werror=missing-braces") set_cpp_flag("-Werror=missing-braces")
set_cpp_flag("-Werror=unused-lambda-capture")
set_cpp_flag("-fno-exceptions") set_cpp_flag("-fno-exceptions")
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
set_cpp_flag("-Werror=unused-lambda-capture")
endif()
# Remove xor, and, or and friends from the list of keywords, they are used # Remove xor, and, or and friends from the list of keywords, they are used
# by Reactor # by Reactor
set_cpp_flag("-fno-operator-names") set_cpp_flag("-fno-operator-names")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment