diff options
| author | mikhnenko <[email protected]> | 2023-11-02 19:27:12 +0300 |
|---|---|---|
| committer | mikhnenko <[email protected]> | 2023-11-02 20:14:23 +0300 |
| commit | ea7266e3afdfe76274c756747fbd24626e1c205a (patch) | |
| tree | 9b8370f3cf8d4399fc960a2c50aa9759f5acf554 /contrib/libs/cxxsupp/libcxx/include/__assert | |
| parent | a528d5d25d42706fe385120b27e1df3a257823fb (diff) | |
Upd libc++ to 14 Jun 2022 1cf4113952ae3e4cc75decdf6feb3ce5dd8ca4a1
Diffstat (limited to 'contrib/libs/cxxsupp/libcxx/include/__assert')
| -rw-r--r-- | contrib/libs/cxxsupp/libcxx/include/__assert | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/contrib/libs/cxxsupp/libcxx/include/__assert b/contrib/libs/cxxsupp/libcxx/include/__assert index 56b95dd5fbe..57228e76719 100644 --- a/contrib/libs/cxxsupp/libcxx/include/__assert +++ b/contrib/libs/cxxsupp/libcxx/include/__assert @@ -19,7 +19,15 @@ // This is for backwards compatibility with code that might have been enabling // assertions through the Debug mode previously. -#if _LIBCPP_DEBUG_LEVEL >= 1 +// TODO: In LLVM 16, make it an error to define _LIBCPP_DEBUG +#if defined(_LIBCPP_DEBUG) +# ifndef _LIBCPP_ENABLE_ASSERTIONS +# define _LIBCPP_ENABLE_ASSERTIONS 1 +# endif +#endif + +// Automatically enable assertions when the debug mode is enabled. +#if defined(_LIBCPP_ENABLE_DEBUG_MODE) # ifndef _LIBCPP_ENABLE_ASSERTIONS # define _LIBCPP_ENABLE_ASSERTIONS 1 # endif |
