Skip to content

Commit 659282b

Browse files
robinWongMrichardlau
authored andcommitted
fix: use GCC 12
1 parent bddb722 commit 659282b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

recipes/x64-glibc-217/Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ ARG UID=1000
66
RUN groupadd --gid $GID node \
77
&& adduser --gid $GID --uid $UID node
88

9+
RUN cat <<EOF | tee -a /etc/yum.repos.d/devtoolset-12.repo
10+
[devtoolset-12]
11+
name=Devtoolset 12
12+
baseurl=https://buildlogs.centos.org/c7-devtoolset-12.x86_64/
13+
enabled=1
14+
gpgcheck=0
15+
EOF
16+
917
RUN ulimit -n 1024 \
1018
&& sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* \
1119
&& sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* \
@@ -22,7 +30,7 @@ RUN ulimit -n 1024 \
2230
rh-python38 \
2331
ccache \
2432
xz-utils \
25-
devtoolset-11 \
33+
devtoolset-12 \
2634
glibc-devel
2735

2836
COPY --chown=node:node run.sh /home/node/run.sh

recipes/x64-glibc-217/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export CC="ccache gcc"
3434
export CXX="ccache g++"
3535
export MAJOR_VERSION=$(echo ${fullversion} | cut -d . -f 1 | tr --delete v)
3636

37-
. /opt/rh/devtoolset-11/enable
37+
. /opt/rh/devtoolset-12/enable
3838
. /opt/rh/rh-python38/enable
3939

4040
make -j$(getconf _NPROCESSORS_ONLN) binary V= \

0 commit comments

Comments
 (0)