Skip to content

Commit f2ef5bb

Browse files
committed
clang+libstdc++
1 parent 0f3e3ce commit f2ef5bb

2 files changed

Lines changed: 12 additions & 3 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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@
6969
"CMAKE_C_COMPILER": "cl",
7070
"CMAKE_CXX_COMPILER": "cl"
7171
},
72+
"cacheVariables": {
73+
"CMAKE_EXE_LINKER_FLAGS": "/VERBOSE:LIB",
74+
"CMAKE_SHARED_LINKER_FLAGS": "/VERBOSE:LIB"
75+
},
7276
"environment": {
7377
"CFLAGS": "/d1trimfile:\"${sourceDir}\"",
7478
"CXXFLAGS": "/d1trimfile:\"${sourceDir}\""

0 commit comments

Comments
 (0)