From 0519d7bda570bf7130852a1ac6e08641215e761e Mon Sep 17 00:00:00 2001 From: Michael D Kinney Date: Thu, 7 Nov 2024 17:41:33 -0800 Subject: [PATCH] .azurepipelines: Install ASAN libs and set ASAN options Signed-off-by: Michael D Kinney --- .azurepipelines/Ubuntu-GCC5.yml | 4 ++++ .azurepipelines/templates/pr-gate-steps.yml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/.azurepipelines/Ubuntu-GCC5.yml b/.azurepipelines/Ubuntu-GCC5.yml index b9a3b851cf3c..753edf4b457b 100644 --- a/.azurepipelines/Ubuntu-GCC5.yml +++ b/.azurepipelines/Ubuntu-GCC5.yml @@ -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()) diff --git a/.azurepipelines/templates/pr-gate-steps.yml b/.azurepipelines/templates/pr-gate-steps.yml index 78b2b2c8d934..1c63f52542ca 100644 --- a/.azurepipelines/templates/pr-gate-steps.yml +++ b/.azurepipelines/templates/pr-gate-steps.yml @@ -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.