Skip to content

Commit

Permalink
[Build] Update to clang-18 for linux clang pipeline (microsoft#6876)
Browse files Browse the repository at this point in the history
This is to work around LeakSanitizer issue 'LeakSanitizer has encountered a fatal error.'

For microsoft#6769
  • Loading branch information
python3kgae authored Aug 26, 2024
1 parent 9c6b2c1 commit 6227e57
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ stages:
Linux_Clang_Release:
image: ${{ variables.linux }}
configuration: Release
CC: clang
CXX: clang++
CC: clang-18
CXX: clang++-18
CMAKE_OPTS: -DLLVM_ENABLE_WERROR=On -DLLVM_USE_SANITIZER='Address;Undefined' -DLLVM_ENABLE_LIBCXX=On -DLLVM_USE_LINKER=lld
CHECK_ALL_ENV: ASAN_OPTIONS=alloc_dealloc_mismatch=0
OS: Linux
Expand Down Expand Up @@ -98,7 +98,12 @@ stages:
inputs:
versionSpec: '3.x'

- bash: sudo apt-get install ninja-build
- bash: |
sudo apt-get install ninja-build
wget https://apt.llvm.org/llvm.sh
chmod u+x llvm.sh
sudo ./llvm.sh 18
sudo apt-get install libc++-18-dev
displayName: 'Installing dependencies'
condition: eq(variables['image'], variables['linux'])
Expand Down

0 comments on commit 6227e57

Please sign in to comment.