[CMake] Option to select C++ library for runtimes that use it
authorPetr Hosek <phosek@google.com>
Thu, 2 Jun 2022 21:52:56 +0000 (21:52 +0000)
committerPetr Hosek <phosek@google.com>
Fri, 8 Jul 2022 22:10:24 +0000 (22:10 +0000)
commitdf90d22704d8743746fa00bc6d67e2789ca9ee9e
treee8f5a9cecbae361b6d4f637f83aaa8b4c7a73e80
parent84960896236338eb1c7b30f34041214e64db0bd1
[CMake] Option to select C++ library for runtimes that use it

We currently have an option to select C++ ABI and C++ library for tests
but there are runtimes that use C++ library, specifically ORC and XRay,
which aren't covered by existing options. This change introduces a new
option to control the use of C++ libray for these runtimes.

Ideally, this option should become the default way to select C++ library
for all of compiler-rt replacing the existing options (the C++ ABI
option could remain as a hidden internal option).

Differential Revision: https://reviews.llvm.org/D128036
clang/cmake/caches/Fuchsia-stage2.cmake
compiler-rt/CMakeLists.txt
compiler-rt/lib/fuzzer/CMakeLists.txt
compiler-rt/lib/orc/CMakeLists.txt
compiler-rt/lib/xray/CMakeLists.txt