Skip to content

Commit

Permalink
ci: use newer g++-14 libstdc++, to make it work with clang
Browse files Browse the repository at this point in the history
  • Loading branch information
Totto16 committed Oct 1, 2024
1 parent 8ba3907 commit a1084de
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,12 @@ jobs:
echo "CC=clang-19" >> "$GITHUB_ENV"
echo "CXX=clang++-19" >> "$GITHUB_ENV"
echo "OBJC=clang-19" >> "$GITHUB_ENV"
# Also install the newest g++ (For the libstd++ library)
echo "deb http://archive.ubuntu.com/ubuntu/ oracular main" | sudo tee -a /etc/apt/sources.list.d/new_ubuntu.list
sudo apt-get update
sudo apt-get install g++-14 -y
sudo rm -rf /etc/apt/sources.list.d/new_ubuntu.list
sudo apt-get update
- name: Setup GCC (Linux)
if: matrix.config.os == 'ubuntu' && matrix.config.use-clang == false
Expand All @@ -143,7 +148,7 @@ jobs:
if: matrix.config.os == 'macos'
run: |
brew update
# TODO annotat5e with lld@19, after that is accepted, we don't want to use lld@20 without manually updating it !
# TODO annotate with lld@19, after that is accepted, we don't want to use lld@20 without manually updating it !
brew install llvm@19 lld
echo "$(brew --prefix)/opt/llvm/bin" >> $GITHUB_PATH
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"
Expand Down

0 comments on commit a1084de

Please sign in to comment.