[CMake] Include dependency on cxx-headers in compiler-rt tests

The missing dependency was revealed by D97572.

Differential Revision: https://reviews.llvm.org/D99706
This commit is contained in:
Petr Hosek 2021-03-31 23:23:20 -07:00
parent 60854c328d
commit 775e55462a
1 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,10 @@ if(NOT ANDROID)
list(APPEND SANITIZER_COMMON_LIT_TEST_DEPS KillTheDoctor)
endif()
endif()
# Tests use C++ standard library headers.
if (TARGET cxx-headers OR HAVE_LIBCXX)
set(SANITIZER_COMMON_LIT_TEST_DEPS cxx-headers)
endif()
endif()
function(compiler_rt_test_runtime runtime)