summaryrefslogtreecommitdiffstats
path: root/taskcluster/scripts/misc/build-gcc-mingw32.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
commit2aa4a82499d4becd2284cdb482213d541b8804dd (patch)
treeb80bf8bf13c3766139fbacc530efd0dd9d54394c /taskcluster/scripts/misc/build-gcc-mingw32.sh
parentInitial commit. (diff)
downloadfirefox-2aa4a82499d4becd2284cdb482213d541b8804dd.tar.xz
firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.zip
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xtaskcluster/scripts/misc/build-gcc-mingw32.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/taskcluster/scripts/misc/build-gcc-mingw32.sh b/taskcluster/scripts/misc/build-gcc-mingw32.sh
new file mode 100755
index 0000000000..7d8525fc76
--- /dev/null
+++ b/taskcluster/scripts/misc/build-gcc-mingw32.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+set -e
+
+# This script is for building a MinGW GCC (and headers) to be used on Linux to compile for Windows.
+
+root_dir=$MOZ_FETCHES_DIR
+data_dir=$GECKO_PATH/build/unix/build-gcc
+
+. $data_dir/build-gcc.sh
+
+binutils_configure_flags="--target=i686-w64-mingw32"
+mingw_version=bcf1f29d6dc80b6025b416bef104d2314fa9be57
+
+pushd $root_dir/gcc-source
+ln -sf ../gmp-source gmp
+ln -sf ../isl-source isl
+ln -sf ../mpc-source mpc
+ln -sf ../mpfr-source mpfr
+popd
+
+prepare_mingw
+build_binutils
+build_gcc_and_mingw
+
+# Put a tarball in the artifacts dir
+mkdir -p $UPLOAD_DIR
+cp $root_dir/mingw32.tar.* $UPLOAD_DIR