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).
Does this mean that if you set COMPILER_RT_CXX_LIBRARY=libcxx, it's assumed that you're actually _building_ that same libcxx in the same cmake invocation?
I'm currently building compiler-rt in a standalone cmake invocation, separate from all the others, with -DSANITIZER_CXX_ABI=libc++. Building them all at once might be something I could consider at some point, but I wouldn't want to force that situation right now, if it could be avoided?