Skip to content

Commit

Permalink
Update gcc 12.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyubo committed Aug 19, 2022
1 parent dc63f74 commit b1c4331
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
Run the following command to build gcc-12/amd64:

cd amd64/gcc-12-ubuntu
docker build -t gcc-12.1.0:ubuntu-20.04 .
docker run --rm --entrypoint cat gcc-12.1.0:ubuntu-20.04 /gcc-12.1.0-1-ubuntu-20.04.deb > /tmp/gcc-12.1.0-1-ubuntu-20.04.deb
docker build -t gcc-12.2.0:ubuntu-20.04 .
docker run --rm --entrypoint cat gcc-12.2.0:ubuntu-20.04 /gcc-12.2.0-1-ubuntu-20.04.deb > /tmp/gcc-12.2.0-1-ubuntu-20.04.deb

### Install

Now you can install it:

sudo apt install -y /tmp/gcc-12.1.0-1-ubuntu-20.04.deb
sudo apt install -y /tmp/gcc-12.2.0-1-ubuntu-20.04.deb

Set gcc-12 as high priority:

Expand Down
2 changes: 1 addition & 1 deletion amd64/gcc-12-ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM ubuntu:$UbuntuVersion
RUN apt update && apt install -y wget build-essential file flex libz-dev libzstd-dev

# Download gcc source code
ARG Gcc12Version=12.1.0
ARG Gcc12Version=12.2.0
RUN wget https://gcc.gnu.org/pub/gcc/releases/gcc-$Gcc12Version/gcc-$Gcc12Version.tar.gz
RUN tar xf gcc-$Gcc12Version.tar.gz
RUN cd /gcc-$Gcc12Version && ./contrib/download_prerequisites
Expand Down

0 comments on commit b1c4331

Please sign in to comment.