This library provides some parts of the C++ ABI bits needed when running on top of vcruntime.
This matches what we link the library itself against (set in CMakeLists.txt). When testing a static library version of libc++, this is needed for essentially every test due to libc++ object files requiring it.
Also with libc++ built as a DLL, some tests directly call functions that are provided by msvcprt (such as std::set_new_handler), thus this fixes a number of tests in that configuration too.
Could you add a comment (somewhere) mentioning the corresponding flags in CMakeLists.txt, please?
They should probably be always in sync.