CI: Enable libc++ hardening in the ASAN build for even more checks

https://libcxx.llvm.org/Hardening.html

PiperOrigin-RevId: 834818278
Change-Id: I063068001c7726b2d74628a0c85445e567e546c1
This commit is contained in:
Derek Mauro
2025-11-20 10:31:29 -08:00
committed by Copybara-Service
parent 482a9745b3
commit 8cd0e4447b

View File

@@ -81,6 +81,7 @@ for std in ${STD}; do
--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}\" \