Skip to content

Commit

Permalink
Update to GCC 14.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartatz committed Aug 8, 2024
1 parent c68b232 commit 7803e5f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
id: check-cache
uses: actions/cache@main
with:
key: gcc-14.1.0-1
key: gcc-14.2.0
lookup-only: true
path: |
/tmp/x86_64-linux-gnu.tar.xz
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
if: ${{ steps.check-cache.outputs.cache-hit != 'true' }}
uses: actions/cache@main
with:
key: gcc-14.1.0-1
key: gcc-14.2.0
path: |
/tmp/x86_64-linux-gnu.tar.xz
/tmp/x86_64-linux-gnu.tar.xz.sha256
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
- name: Restore from cache
uses: actions/cache@main
with:
key: gcc-14.1.0-1
key: gcc-14.2.0
fail-on-cache-miss: true
path: |
/tmp/x86_64-linux-gnu.tar.xz
Expand Down
10 changes: 5 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ declare -r mpc_tarball='/tmp/mpc.tar.gz'
declare -r mpc_directory='/tmp/mpc-1.3.1'

declare -r binutils_tarball='/tmp/binutils.tar.xz'
declare -r binutils_directory='/tmp/binutils-2.42'
declare -r binutils_directory='/tmp/binutils-2.43'

declare gcc_directory=''

Expand All @@ -34,8 +34,8 @@ function setup_gcc_source() {
declare -r tgt

gcc_version='14'
gcc_directory='/tmp/gcc-14.1.0'
gcc_url='https://ftp.gnu.org/gnu/gcc/gcc-14.1.0/gcc-14.1.0.tar.xz'
gcc_directory='/tmp/gcc-14.2.0'
gcc_url='https://ftp.gnu.org/gnu/gcc/gcc-14.2.0/gcc-14.2.0.tar.xz'

gcc_tarball="/tmp/gcc-${gcc_version}.tar.xz"

Expand Down Expand Up @@ -98,7 +98,7 @@ if ! [ -f "${mpc_tarball}" ]; then
fi

if ! [ -f "${binutils_tarball}" ]; then
wget --no-verbose 'https://ftp.gnu.org/gnu/binutils/binutils-2.42.tar.xz' --output-document="${binutils_tarball}"
wget --no-verbose 'https://ftp.gnu.org/gnu/binutils/binutils-2.43.tar.xz' --output-document="${binutils_tarball}"
tar --directory="$(dirname "${binutils_directory}")" --extract --file="${binutils_tarball}"

patch --directory="${binutils_directory}" --strip='1' --input="${workdir}/patches/0001-Revert-gold-Use-char16_t-char32_t-instead-of-uint16_.patch"
Expand Down Expand Up @@ -226,7 +226,7 @@ for target in "${targets[@]}"; do
--with-mpc="${toolchain_directory}" \
--with-mpfr="${toolchain_directory}" \
--with-bugurl='https://github.com/AmanoTeam/Raiden/issues' \
--with-pkgversion="Raiden v0.5-${revision}" \
--with-pkgversion="Raiden v0.6-${revision}" \
--with-sysroot="${toolchain_directory}/${triplet}" \
--with-gcc-major-version-only \
--with-native-system-header-dir='/include' \
Expand Down

0 comments on commit 7803e5f

Please sign in to comment.