Ah, I see. The page may have only been written for the 18 release, or not included in the 17 release for some reason.
According to commit 4a825039a509c43ba20b2cd7aab448b3be16bcc3, “From LLVM 17, _LIBCPP_ENABLE_DEBUG_MODE
can be used instead.” C.f. https://web.archive.org/web/20230815180109/https://libcxx.llvm.org/Hardening.html
This makes me wonder if it is worth it to support clang 17 debug mode, if clang 14,15, and 16 isn’t supported either.
It seems fine to require clang 18, if someone want to use clang, depends, and D_LIBCPP_HARDENING_MODE
.
Is there anyone other than OSS-Fuzz and a CI config interested in this?