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 12, 2024
1 parent a4eafda commit ac1be8d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
11 changes: 7 additions & 4 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-2
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-2
key: gcc-14.2.0
path: |
/tmp/x86_64-linux-gnu.tar.xz
/tmp/x86_64-linux-gnu.tar.xz.sha256
Expand All @@ -54,9 +54,11 @@ jobs:
name: 'Cross build'
needs: native-build
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
target: [
'ia64-unknown-linux-gnu',
'alpha-unknown-linux-gnu',
'x86_64-unknown-linux-gnu',
'i386-unknown-linux-gnu',
Expand All @@ -70,7 +72,8 @@ jobs:
's390-unknown-linux-gnu',
's390x-unknown-linux-gnu',
'sparc-unknown-linux-gnu',
'powerpc64le-unknown-linux-gnu'
'powerpc64le-unknown-linux-gnu',
'mips64el-unknown-linux-gnuabi64'
]
steps:
- uses: actions/checkout@main
Expand All @@ -79,7 +82,7 @@ jobs:
- name: Restore from cache
uses: actions/cache@main
with:
key: gcc-14.1.0-2
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 @@ -16,7 +16,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 @@ -35,8 +35,8 @@ function setup_gcc_source() {
gcc_url='https://ftp.gnu.org/gnu/gcc/gcc-12.3.0/gcc-12.3.0.tar.xz'
else
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'
fi

gcc_tarball="/tmp/gcc-${gcc_version}.tar.xz"
Expand Down Expand Up @@ -106,7 +106,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 @@ -304,7 +304,7 @@ for target in "${targets[@]}"; do
--with-mpfr="${toolchain_directory}" \
--with-bugurl='https://github.com/AmanoTeam/Dakini/issues' \
--with-gcc-major-version-only \
--with-pkgversion="Dakini v0.5-${revision}" \
--with-pkgversion="Dakini v0.6-${revision}" \
--with-sysroot="${toolchain_directory}/${triplet}" \
--with-native-system-header-dir='/include' \
--enable-__cxa_atexit \
Expand Down

0 comments on commit ac1be8d

Please sign in to comment.