diff options
author | Eric Fiselier <eric@efcs.ca> | 2017-03-11 03:24:18 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2017-03-11 03:24:18 +0000 |
commit | c51e0d21a1702074241a1541dccbd1ea857bb350 (patch) | |
tree | 210672a782efa566d17c23c26cbcf6ecbdd1f731 /CMakeLists.txt | |
parent | 76880f55bf22de77f45db5fc9ebe66c63c7e0a16 (diff) |
Change test coverage generation to use llvm-cov instead of gcov.
Clang doesn't produce gcov compatible coverage files. This
causes lcov to break because it uses gcov by default. This
patch switches lcov to use llvm-cov as the gcov-tool.
Unfortunatly llvm-cov doesn't provide a gcov like interface by
default so it won't work with lcov. However `llvm-cov gcov` does.
For this reason we generate 'llvm-cov-wrapper' script that always
passes the gcov flag.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@297553 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 45ef0c01f..9e9360ea9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,6 +57,7 @@ endif() # Setup CMake Options #=============================================================================== include(CMakeDependentOption) +include(HandleCompilerRT) # Basic options --------------------------------------------------------------- option(LIBCXX_ENABLE_ASSERTIONS "Enable assertions independent of build mode." OFF) |