[libcxx-commits] [libcxx] [libc++][hardening] Check that `_LIBCPP_HARDENING_MODE_DEFAULT` is defined (PR #80353)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Feb 1 14:18:20 PST 2024
================
@@ -325,6 +325,11 @@
// clang-format on
# ifndef _LIBCPP_HARDENING_MODE
+
+# ifndef _LIBCPP_HARDENING_MODE_DEFAULT
+# error _LIBCPP_HARDENING_MODE_DEFAULT is not defined.
----------------
ldionne wrote:
I would say something like `This definition should be set at configuration-time in the __config_site header, please ensure your installation of libc++ is not broken` -- or something like that. WDYT?
https://github.com/llvm/llvm-project/pull/80353
More information about the libcxx-commits
mailing list