Commit 6ce626b4 by Ben Clayton

CMake: Only build turbo-cov with clang + llvm 10

turbo-cov can only process clang coverage information, so there's no point building it for other toolchains. turbo-cov depends on the llvm-10 libs and headers, and does not build against llvm-7. Bug: b/152192800 Change-Id: I522ecb3adfbd448aa47673c452a83083134a36ca Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/44728 Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Tested-by: 's avatarBen Clayton <bclayton@google.com>
parent c4bbd378
...@@ -723,7 +723,9 @@ if(SWIFTSHADER_BUILD_VULKAN) ...@@ -723,7 +723,9 @@ if(SWIFTSHADER_BUILD_VULKAN)
add_subdirectory(src/Device) # Add vk_device target add_subdirectory(src/Device) # Add vk_device target
add_subdirectory(src/Vulkan) # Add vk_swiftshader target add_subdirectory(src/Vulkan) # Add vk_swiftshader target
if(SWIFTSHADER_EMIT_COVERAGE) if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND # turbo-cov is only useful for clang coverage info
SWIFTSHADER_LLVM_VERSION EQUAL "10.0" AND # turbo-cov does not build with earlier llvm versions
SWIFTSHADER_EMIT_COVERAGE)
add_subdirectory(${TESTS_DIR}/regres/cov/turbo-cov) add_subdirectory(${TESTS_DIR}/regres/cov/turbo-cov)
endif() 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