Skip to content

Commit

Permalink
Update to gcc-13.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekseyZhmulin committed Jul 5, 2024
1 parent eec6961 commit 06c02c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions crosstool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ print_help() {
ls *.in | sed 's/\.in//; s/^/ /'
}


JOBS=$(nproc || echo 4)
while getopts j:h arg; do
case $arg in
Expand All @@ -37,16 +36,17 @@ CROSSTOOL_ARCH=$1

. ./$CROSSTOOL_ARCH.in

CUR_DIR=$(pwd)
# Create temp working dir
if [ ! -e build-$CROSSTOOL_ARCH ]; then
mkdir build-$CROSSTOOL_ARCH
fi

CUR_DIR=$(pwd)

BUILD_DIR=$CUR_DIR/build-$CROSSTOOL_ARCH

LOG_FILE=$BUILD_DIR/emtool.log


PATCHES_DIR=$CUR_DIR/patches

PATCHES="$(ls $PATCHES_DIR/*.patch 2>/dev/null || true)
Expand All @@ -65,7 +65,7 @@ GET_URL=("https://libisl.sourceforge.io/isl-0.24.tar.bz2" \
"https://ftp.gnu.org/gnu/mpfr/mpfr-4.1.0.tar.bz2" \
"https://ftp.gnu.org/gnu/mpc/mpc-1.2.1.tar.gz" \
"https://ftp.gnu.org/gnu/binutils/binutils-2.42.tar.bz2" \
"https://ftp.gnu.org/gnu/gcc/gcc-13.2.0/gcc-13.2.0.tar.gz" \
"https://ftp.gnu.org/gnu/gcc/gcc-13.3.0/gcc-13.3.0.tar.gz" \
"https://ftp.gnu.org/gnu/gdb/gdb-14.2.tar.xz")

DOWNLOAD=../download
Expand All @@ -75,6 +75,8 @@ for i in $(seq 0 $((${#GET_URL[@]} - 1))); do
NAME[$i]=${TARBALL[$i]%%.tar.*}
done

MAKE_FLAGS="${MAKE_FLAGS} -j$JOBS"

do_download() {
local downloaded=".downloaded"
print_msg "Download sources"
Expand Down
4 changes: 2 additions & 2 deletions patches/mips/t-mti-elf.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- gcc-13.2.0/gcc/config/mips/t-mti-elf 2023-07-27 11:13:04.000000000 +0300
+++ gcc-13.2.0/gcc/config/mips/t-mti-elf-new 2024-04-06 05:57:41.083277145 +0300
--- gcc-13.3.0/gcc/config/mips/t-mti-elf 2023-07-27 11:13:04.000000000 +0300
+++ gcc-13.3.0/gcc/config/mips/t-mti-elf-new 2024-04-06 05:57:41.083277145 +0300
@@ -19,8 +19,8 @@
# The default build is mips32r2, hard-float big-endian. Add mips32,
# soft-float, and little-endian variations.
Expand Down

0 comments on commit 06c02c2

Please sign in to comment.