Index: runtime/CMakeLists.txt =================================================================== --- runtime/CMakeLists.txt +++ runtime/CMakeLists.txt @@ -62,6 +62,10 @@ set(COMPILER_RT_LIBCXX_DEPENDENCY "cxx-headers") endif() + if(LLVM_INCLUDE_TESTS) + list(APPEND COMPILER_RT_LIBCXX_DEPENDENCY LLVMTestingSupport) + endif() + ExternalProject_Add(compiler-rt DEPENDS llvm-config clang ${COMPILER_RT_LIBCXX_DEPENDENCY} PREFIX ${COMPILER_RT_PREFIX}