Skip to content

Commit e508f3d

Browse files
committed
Disable hardening mode
LLVM 18.1.2 adds support for "Hardening Modes" to libcxx (https://libcxx.llvm.org/Hardening.html). There are four modes: none, fast, extensive and debug. Different hardening modes make different trade-offs between the amount of checking and runtime performance. We for now disable it (i.e., set it to 'none') so that we don't have any effects on the performance. We can consider enabling it when we ever get to enable the debug version of libcxx.
1 parent 2bd7c67 commit e508f3d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

system/lib/libcxx/include/__config_site

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
#define _LIBCPP_PSTL_CPU_BACKEND_SERIAL
99
// __libcpp_verbose_abort creases code size too much
1010
#define _LIBCPP_AVAILABILITY_HAS_VERBOSE_ABORT 0
11+
#define _LIBCPP_HARDENING_MODE _LIBCPP_HARDENING_MODE_NONE
1112
#define _LIBCPP_HAS_NO_TIME_ZONE_DATABASE

0 commit comments

Comments
 (0)