Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3a6ff1b

Browse files
authoredMay 7, 2024
pythongh-117657: Use clang 18 in TSAN builds (pythonGH-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

+8-1
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)