Skip to content

Commit

Permalink
downgrade from gcc-13 to gcc-11 (#116)
Browse files Browse the repository at this point in the history
Internally, bumping from gcc-11 to gcc-13 requires an update of libstdc++
from `8.4.0-1ubuntu1~18.04` to `13.1.0-8ubuntu1~18.04`. Our standard images
cannot accept this change, so we must downgrade.
  • Loading branch information
copperlight authored Dec 11, 2024
1 parent 0e2646d commit 5bc3266
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install System Dependencies
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update && sudo apt-get install -y binutils-dev g++-13 libiberty-dev
sudo apt-get update && sudo apt-get install -y binutils-dev g++-11 libiberty-dev
- name: Build
run: |
Expand Down
5 changes: 3 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ fi
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
source /etc/os-release
if [[ "$NAME" == "Ubuntu" ]]; then
if [[ -z "$CC" ]]; then export CC=gcc-13; fi
if [[ -z "$CXX" ]]; then export CXX=g++-13; fi
# gcc version cannot be updated without breaking standard bionic images
if [[ -z "$CC" ]]; then export CC=gcc-11; fi
if [[ -z "$CXX" ]]; then export CXX=g++-11; fi
fi
fi

Expand Down

0 comments on commit 5bc3266

Please sign in to comment.