Skip to content

Commit

Permalink
.azurepipelines: Install ASAN libs and set ASAN options
Browse files Browse the repository at this point in the history
Signed-off-by: Michael D Kinney <[email protected]>
  • Loading branch information
mdkinney committed Nov 8, 2024
1 parent fa3ae62 commit 0519d7b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .azurepipelines/Ubuntu-GCC5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ jobs:
container: ${{ variables.default_linux_image }}
arch_list: "IA32,X64,ARM,AARCH64,RISCV64,LOONGARCH64"
usePythonVersion: '' # use Python from the container image
extra_install_step:
- bash: sudo apt-get install -y libasan6 libubsan0
displayName: Install Sanitizer Libraries
condition: and(gt(variables.pkg_count, 0), succeeded())
2 changes: 2 additions & 0 deletions .azurepipelines/templates/pr-gate-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ steps:
- bash: |
echo "##vso[task.setvariable variable=pkgs_to_build]${{ parameters.build_pkgs }}"
echo "##vso[task.setvariable variable=pkg_count]${{ 1 }}"
echo "##vso[task.setvariable variable=ASAN_OPTIONS]detect_leaks=0"
echo "##vso[task.setvariable variable=GTEST_CATCH_EXCEPTIONS]0"
# Fetch the target branch so that pr_eval can diff them.
# Seems like azure pipelines/github changed checkout process in nov 2020.
Expand Down

0 comments on commit 0519d7b

Please sign in to comment.