Skip to content

Commit 6227e57

Browse files
authored
[Build] Update to clang-18 for linux clang pipeline (microsoft#6876)
This is to work around LeakSanitizer issue 'LeakSanitizer has encountered a fatal error.' For microsoft#6769
1 parent 9c6b2c1 commit 6227e57

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

azure-pipelines.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ stages:
5151
Linux_Clang_Release:
5252
image: ${{ variables.linux }}
5353
configuration: Release
54-
CC: clang
55-
CXX: clang++
54+
CC: clang-18
55+
CXX: clang++-18
5656
CMAKE_OPTS: -DLLVM_ENABLE_WERROR=On -DLLVM_USE_SANITIZER='Address;Undefined' -DLLVM_ENABLE_LIBCXX=On -DLLVM_USE_LINKER=lld
5757
CHECK_ALL_ENV: ASAN_OPTIONS=alloc_dealloc_mismatch=0
5858
OS: Linux
@@ -98,7 +98,12 @@ stages:
9898
inputs:
9999
versionSpec: '3.x'
100100

101-
- bash: sudo apt-get install ninja-build
101+
- bash: |
102+
sudo apt-get install ninja-build
103+
wget https://apt.llvm.org/llvm.sh
104+
chmod u+x llvm.sh
105+
sudo ./llvm.sh 18
106+
sudo apt-get install libc++-18-dev
102107
displayName: 'Installing dependencies'
103108
condition: eq(variables['image'], variables['linux'])
104109

0 commit comments

Comments
 (0)