summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2019-01-04 23:12:18 +0100
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2019-06-07 10:15:44 -0400
commit430056babf09fcfbafa7ab3c6d224fa92df3fbdf (patch)
treef00b1421e9177b21721d84e94eafe4945ddeed5d /tools
parent72ffb64d8ad1759f5245a6f6e1c5c682b973d8cf (diff)
Upgrade toolchain to GCC 8.2.0 MinGW v6.0.0
Diffstat (limited to 'tools')
-rwxr-xr-xtools/build-toolchains.sh48
1 files changed, 21 insertions, 27 deletions
diff --git a/tools/build-toolchains.sh b/tools/build-toolchains.sh
index 077c4445..3a770fd2 100755
--- a/tools/build-toolchains.sh
+++ b/tools/build-toolchains.sh
@@ -5,33 +5,27 @@ WIPE=$1
CURDIR=`pwd`
set -e
-for a in "w64" "w32"
+for p in "lin" "win"
do
- for p in "lin" "win"
- do
- echo "Building $p-$a toolchain"
- if test "x$WIPE" = "x1"; then
- ./cerbero-uninstalled -c config/mingw-$a-$p.cbc wipe --force
- fi
- ./cerbero-uninstalled -c config/mingw-$a-$p.cbc build toolchain
-
-
- if test "x$a" = "xw64"; then
- ARCH=x86_64
- else
- ARCH=x86
+ echo "Building $p-multilib toolchain"
+ if test "x$WIPE" = "x1"; then
+ ./cerbero-uninstalled -c config/mingw-multilib-$p.cbc wipe --force
fi
- if test "x$p" = "xwin"; then
- PLAT=windows
- else
- PLAT=linux
- fi
- TC=mingw-$a-gcc-4.7.3-$PLAT-$ARCH.tar.xz
- echo "Creating tarball $TC"
- cd ~/mingw/$PLAT/$a
- XZ_OPT=-9 tar cJf $CURDIR/$TC *
- cd $CURDIR
- md5sum $TC | awk '{print $1}' > $TC.md5
- sha1sum $TC | awk '{print $1}' > $TC.sha1
- done
+ ./cerbero-uninstalled -c config/mingw-multilib-$p.cbc bootstrap --build-tools-only
+ ./cerbero-uninstalled -c config/mingw-multilib-$p.cbc build toolchain
+
+ ARCH=x86_64
+ if test "x$p" = "xwin"; then
+ PLAT=windows
+ else
+ PLAT=linux
+ fi
+ TC=mingw-6.0.0-gcc-8.2.0-$PLAT-multilib.tar.xz
+ echo "Creating tarball $TC"
+ cd ~/mingw/$PLAT/multilib
+ XZ_OPT=-9 tar cJf $CURDIR/$TC *
+ cd $CURDIR
+ md5sum $TC | awk '{print $1}' > $TC.md5
+ sha1sum $TC | awk '{print $1}' > $TC.sha1
+ sha256sum $TC | awk '{print $1}' > $TC.sha256
done