Skip to content

Commit

Permalink
ci: build msan's libc with _LIBCPP_ABI_BOUNDED_*
Browse files Browse the repository at this point in the history
For the task `MSan, depends (Cirrus CI)` we build a custom libc++ for
which we already use `-DLIBCXX_HARDENING_MODE=debug`. Compile it also
with `_LIBCPP_ABI_BOUNDED_*` to enable further checks.

Docs at: https://libcxx.llvm.org/Hardening.html#abi-options
  • Loading branch information
vasild committed Jan 6, 2025
1 parent 6475849 commit b9b8eaa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ci/test/01_base_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ if [[ ${USE_MEMORY_SANITIZER} == "true" ]]; then
-DLLVM_USE_SANITIZER=MemoryWithOrigins \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_CXX_FLAGS="\
-D_LIBCPP_ABI_BOUNDED_ITERATORS \
-D_LIBCPP_ABI_BOUNDED_ITERATORS_IN_STD_ARRAY \
-D_LIBCPP_ABI_BOUNDED_ITERATORS_IN_STRING \
-D_LIBCPP_ABI_BOUNDED_ITERATORS_IN_VECTOR \
-D_LIBCPP_ABI_BOUNDED_UNIQUE_PTR \
" \
-DLLVM_TARGETS_TO_BUILD=Native \
-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF \
-DLIBCXXABI_USE_LLVM_UNWINDER=OFF \
Expand Down

0 comments on commit b9b8eaa

Please sign in to comment.