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

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 1 10:42:12 PDT 2021


Author: Petr Hosek
Date: 2021-04-01T10:42:06-07:00
New Revision: 775e55462a6497795b8444718f136b753453bd30

URL: https://github.com/llvm/llvm-project/commit/775e55462a6497795b8444718f136b753453bd30
DIFF: https://github.com/llvm/llvm-project/commit/775e55462a6497795b8444718f136b753453bd30.diff

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

The missing dependency was revealed by D97572.

Differential Revision: https://reviews.llvm.org/D99706

Added: 
    

Modified: 
    compiler-rt/test/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/CMakeLists.txt b/compiler-rt/test/CMakeLists.txt
index 27b8b9c5ef4a4..68f5066fa8c55 100644
--- a/compiler-rt/test/CMakeLists.txt
+++ b/compiler-rt/test/CMakeLists.txt
@@ -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)


        


More information about the llvm-commits mailing list