diff options
author | tazjin <tazjin@yandex-team.com> | 2024-12-24 21:03:43 +0300 |
---|---|---|
committer | tazjin <tazjin@yandex-team.com> | 2024-12-24 22:03:55 +0300 |
commit | d8df7f1c1f12dbb8cc66503852ee49362c824832 (patch) | |
tree | 5d4ccc67ccec079387ebcc3715db25297396d3ce /contrib | |
parent | 5316c104d58281584317972b3b4a1fc19dbbef45 (diff) | |
download | ydb-d8df7f1c1f12dbb8cc66503852ee49362c824832.tar.gz |
enable libc++ hardening for all debug builds
Enable [libc++ hardening](https://libcxx.llvm.org/Hardening.html) in fast mode for all debug builds. This means that tests using `relwithdebinfo` and other debug builds, as well as binaries built with `ya make` (without `-r`) will perform runtime bounds checking when accessing standard library containers.
This also affects Arcadia-types that wrap standard library constructs (such as `TVector`).
commit_hash:9834c2d5b96d7ffa817bd31ef049b4463494cb92
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/libs/cxxsupp/libcxx/include/__config_site | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/libs/cxxsupp/libcxx/include/__config_site b/contrib/libs/cxxsupp/libcxx/include/__config_site index a9e21ac506..b8617d783e 100644 --- a/contrib/libs/cxxsupp/libcxx/include/__config_site +++ b/contrib/libs/cxxsupp/libcxx/include/__config_site @@ -53,3 +53,7 @@ #ifdef _musl_ # define _LIBCPP_HAS_MUSL_LIBC #endif + +#ifndef NDEBUG +# define _LIBCPP_HARDENING_MODE _LIBCPP_HARDENING_MODE_FAST +#endif |