Skip to content

Commit a1084de

Browse files
committed
ci: use newer g++-14 libstdc++, to make it work with clang
1 parent 8ba3907 commit a1084de

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,12 @@ jobs:
130130
echo "CC=clang-19" >> "$GITHUB_ENV"
131131
echo "CXX=clang++-19" >> "$GITHUB_ENV"
132132
echo "OBJC=clang-19" >> "$GITHUB_ENV"
133-
133+
# Also install the newest g++ (For the libstd++ library)
134+
echo "deb http://archive.ubuntu.com/ubuntu/ oracular main" | sudo tee -a /etc/apt/sources.list.d/new_ubuntu.list
135+
sudo apt-get update
136+
sudo apt-get install g++-14 -y
137+
sudo rm -rf /etc/apt/sources.list.d/new_ubuntu.list
138+
sudo apt-get update
134139
135140
- name: Setup GCC (Linux)
136141
if: matrix.config.os == 'ubuntu' && matrix.config.use-clang == false
@@ -143,7 +148,7 @@ jobs:
143148
if: matrix.config.os == 'macos'
144149
run: |
145150
brew update
146-
# TODO annotat5e with lld@19, after that is accepted, we don't want to use lld@20 without manually updating it !
151+
# TODO annotate with lld@19, after that is accepted, we don't want to use lld@20 without manually updating it !
147152
brew install llvm@19 lld
148153
echo "$(brew --prefix)/opt/llvm/bin" >> $GITHUB_PATH
149154
echo "LDFLAGS=-L$(brew --prefix)/opt/llvm/lib -L$(brew --prefix)/opt/llvm/lib/c++ -Wl,-rpath,$(brew --prefix)/opt/llvm/lib/c++" >> "$GITHUB_ENV"

0 commit comments

Comments
 (0)