Skip to content

Commit 3a6ff1b

Browse files
authored
gh-117657: Use clang 18 in TSAN builds (GH-118533)
Use clang 18 in TSAN builds We were using clang 14 which is a couple of years old.
1 parent b7778d5 commit 3a6ff1b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/reusable-tsan.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,14 @@ jobs:
2929
- name: Install Dependencies
3030
run: |
3131
sudo ./.github/workflows/posix-deps-apt.sh
32-
sudo apt install -y clang
32+
# Install clang-18
33+
wget https://apt.llvm.org/llvm.sh
34+
chmod +x llvm.sh
35+
sudo ./llvm.sh 18
36+
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-18 100
37+
sudo update-alternatives --set clang /usr/bin/clang-18
38+
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-18 100
39+
sudo update-alternatives --set clang++ /usr/bin/clang++-18
3340
# Reduce ASLR to avoid TSAN crashing
3441
sudo sysctl -w vm.mmap_rnd_bits=28
3542
- name: TSAN Option Setup

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy