mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 03:16:07 +00:00

`_LIBCPP_ENABLE_ASSERTIONS` was used to enable the "safe" mode in libc++. Libc++ now provides the hardened mode and the debug mode that replace the safe mode. For backward compatibility, enabling `_LIBCPP_ENABLE_ASSERTIONS` now enables the hardened mode. Note that the hardened mode provides a narrower set of checks than the previous "safe" mode (only security-critical checks that are performant enough to be used in production). Differential Revision: https://reviews.llvm.org/D154997
9 lines
335 B
CMake
9 lines
335 B
CMake
set(CMAKE_BUILD_TYPE Release CACHE STRING "")
|
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON CACHE BOOL "")
|
|
|
|
set(LIBCXX_ABI_VERSION "1" CACHE STRING "")
|
|
set(LIBCXX_ENABLE_STATIC ON CACHE BOOL "")
|
|
set(LIBCXX_ENABLE_SHARED ON CACHE BOOL "")
|
|
set(LIBCXX_CXX_ABI libcxxrt CACHE STRING "")
|
|
set(LIBCXX_ENABLE_NEW_DELETE_DEFINITIONS ON CACHE BOOL "")
|