Using -nostdinc++ as a linker flag in CMake 3.26 will cause compilation
failures due to -Wunused-command-line-argument. This causes several
compiler flags to be rejected. This will cause libunwind to refuse to
build since its required flags aren't supported by the compiler.
Note CMake 3.26 has not been released yet. This has been tested with
RC5. CMake 3.26 is used to test with C++ modules in libc++.
I think it would be really nice to instead avoid passing -nostdinc++ to the linker when we don't mean it. That would require a bit of reworking of how we detect compiler options, but that might be a good idea nonetheless. Thoughts?