see https://github.com/llvm/llvm-project/pull/109330 We should probably switch to setting libc++ hardening when building libc++, via the `-DLIBCXX_HARDENING_MODE=...` cmake option. This embeds the desired hardening mode into a config header used by libc++.
The interaction here with https://github.com/llvm/llvm-project/issues/122687 may be interesting.