1
0
mirror of https://github.com/renbaoshuo/s2oj-gcc.git synced 2024-11-08 12:18:42 +00:00
This commit is contained in:
Baoshuo Ren 2023-11-16 20:29:49 +08:00
parent b516af9e1b
commit c15f259b72
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ steps:
- sed -i 's@//.*archive.ubuntu.com@//mirror-cdn.xtom.com@g' /etc/apt/sources.list && - sed -i 's@//.*archive.ubuntu.com@//mirror-cdn.xtom.com@g' /etc/apt/sources.list &&
sed -i 's@//security.ubuntu.com@//mirror-cdn.xtom.com@g' /etc/apt/sources.list sed -i 's@//security.ubuntu.com@//mirror-cdn.xtom.com@g' /etc/apt/sources.list
- apt update && - apt update &&
apt install -y git make gcc g++ libgmp-dev libmpfr-dev libmpc-dev gcc-multilib apt install -y curl git make gcc g++ libgmp-dev libmpfr-dev libmpc-dev gcc-multilib
- bash build.sh - bash build.sh
environment: environment:
GITEA_ENDPOINT: https://git.m.ac GITEA_ENDPOINT: https://git.m.ac

View File

@ -14,7 +14,7 @@ git clone -b "releases/gcc-$GCC_VERSION" --depth 1 "${GCC_GIT}" "${GCC_SRC}"
# Apply patches # Apply patches
echo "===> Applying patches..." echo "===> Applying patches..."
cd ${GCC_SRC} cd ${GCC_SRC}
patch -p1 < ../patches/gcc-$GCC_VERSION.patch patch -p1 < ${CURRENT_DIR}/patches/gcc-$GCC_VERSION.patch
cd ${CURRENT_DIR} cd ${CURRENT_DIR}
# Configure GCC # Configure GCC