[libcxx-commits] [libcxx] [libc++][hardening] Introduce a dylib function to log hardening errors. (PR #149452)

Konstantin Varlamov via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jul 22 02:46:46 PDT 2025


================
@@ -30,6 +30,7 @@ set(LIBCXX_SOURCES
   include/ryu/ryu.h
   include/to_chars_floating_point.h
   include/from_chars_floating_point.h
+  log_hardening_failure.cpp
----------------
var-const wrote:

Should this be predicated on some conditional? All existing sources have one (e.g. `if (LIBCXX_ENABLE_LOCALIZATION AND LIBCXX_ENABLE_FILESYSTEM AND LIBCXX_ENABLE_TIME_ZONE_DATABASE)`), but I don't think it applies for the logging function?

https://github.com/llvm/llvm-project/pull/149452


More information about the libcxx-commits mailing list