[CMake] Use cxx-headers as a depedency for C++ headers
authorPetr Hosek <phosek@chromium.org>
Mon, 16 Jul 2018 18:48:20 +0000 (18:48 +0000)
committerPetr Hosek <phosek@chromium.org>
Mon, 16 Jul 2018 18:48:20 +0000 (18:48 +0000)
commitb05be5f4b4cc5d426dd8ee7aac8b83556453a766
tree2356243fd2ee7ce6f170b6e097f06940e41f821e
parentc370d7b33d0aba8b80f3a0b633f4f8d92c448833
[CMake] Use cxx-headers as a depedency for C++ headers

We no longer pass CLANG_DEFAULT_CXX_STDLIB to the runtimes build
as it was causing issues so we can no longer use this variable. We
instead use cxx-headers as a dependency whenever this is available
since both XRay and libFuzzer are built as static libraries so this
is sufficient.

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

llvm-svn: 337199
compiler-rt/lib/fuzzer/CMakeLists.txt
compiler-rt/lib/xray/CMakeLists.txt