Commit b328e0d3 by Ben Clayton

CMakeList: Remove the CLANG_VERSION_STRING check

It appears to be undefined for me. Let Kokoro decide if it is required. Change-Id: I0052703552dd0727e6d3dc12f7947ce06faee5f6 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29054Tested-by: 's avatarBen Clayton <bclayton@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent b5d5f478
......@@ -232,8 +232,7 @@ else()
set_cpp_flag("-Werror=missing-braces")
set_cpp_flag("-fno-exceptions")
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND
CLANG_VERSION_STRING VERSION_GREATER_EQUAL 5)
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
set_cpp_flag("-Werror=unused-lambda-capture")
set_cpp_flag("-Werror=string-conversion")
endif()
......
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