Skip to content

Commit 412eced

Browse files
committed
clang+libstdc++
1 parent 0f3e3ce commit 412eced

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

.github/workflows/test.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ jobs:
2626
preset: dev-gcc
2727

2828
# ── Linux / Clang 22 ──
29+
- os: ubuntu-24.04
30+
compiler: clang-22
31+
preset: dev-clang
32+
33+
# ── Linux / Clang 22 + libc++ ──
2934
- os: ubuntu-24.04
3035
compiler: clang-22+libc++
3136
preset: dev-clang-libcxx
@@ -66,12 +71,12 @@ jobs:
6671
--slave /usr/bin/g++ g++ /usr/bin/g++-16
6772
6873
- name: Install Clang 22 + libc++
69-
if: matrix.compiler == 'clang-22+libc++'
74+
if: startsWith(matrix.compiler, 'clang-22')
7075
run: |
7176
wget -q https://apt.llvm.org/llvm.sh
7277
sudo bash llvm.sh 22 all
73-
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-22 100
74-
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-22 100
78+
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-22 200
79+
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-22 200
7580
7681
- name: Install Ninja
7782
if: runner.os == 'Linux'

CMakePresets.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@
6767
"inherits": "base",
6868
"cacheVariables": {
6969
"CMAKE_C_COMPILER": "cl",
70-
"CMAKE_CXX_COMPILER": "cl"
70+
"CMAKE_CXX_COMPILER": "cl",
71+
"CMAKE_EXE_LINKER_FLAGS": "/VERBOSE:LIB",
72+
"CMAKE_SHARED_LINKER_FLAGS": "/VERBOSE:LIB"
7173
},
7274
"environment": {
7375
"CFLAGS": "/d1trimfile:\"${sourceDir}\"",
@@ -146,4 +148,4 @@
146148
"configurePreset": "tsan"
147149
}
148150
]
149-
}
151+
}

0 commit comments

Comments
 (0)