[CMake] Use libcxx targets for in-tree sanitizer C++ ABI
authorPetr Hosek <phosek@google.com>
Thu, 29 Sep 2022 07:53:06 +0000 (07:53 +0000)
committerPetr Hosek <phosek@google.com>
Fri, 30 Sep 2022 01:29:03 +0000 (01:29 +0000)
commit7dbdffefb768062f28599c256b5e013ee26ff04e
tree8c11f51cf414867e6b5563a54b2d56fcec42ca23
parent91c96a806cae58539e40c9e443a08bde91ccc91e
[CMake] Use libcxx targets for in-tree sanitizer C++ ABI

When in-tree libcxx is selected as the sanitizer C++ ABI, use libcxx
targets rather than libcxxabi and libunwind, since those may not be
available on all platforms (Windows for example).

Differential Revision: https://reviews.llvm.org/D134855
compiler-rt/CMakeLists.txt