CI: Enable libc++ hardening in the ASAN build for even more checks https://libcxx.llvm.org/Hardening.html PiperOrigin-RevId: 834818278 Change-Id: I063068001c7726b2d74628a0c85445e567e546c1
diff --git a/ci/linux_clang-latest_libcxx_asan_bazel.sh b/ci/linux_clang-latest_libcxx_asan_bazel.sh index cfc5510..cea10ff 100755 --- a/ci/linux_clang-latest_libcxx_asan_bazel.sh +++ b/ci/linux_clang-latest_libcxx_asan_bazel.sh
@@ -81,6 +81,7 @@ --action_env=\"CPLUS_INCLUDE_PATH=/opt/llvm/libcxx/include/c++/v1\" \ --compilation_mode=\"${compilation_mode}\" \ --copt=\"${exceptions_mode}\" \ + --copt=\"-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_DEBUG\" \ --copt=\"-DGTEST_REMOVE_LEGACY_TEST_CASEAPI_=1\" \ --copt=\"-fsanitize=address\" \ --copt=\"-fsanitize=${UBSAN_CHECKS}\" \