diff options
Diffstat (limited to '')
-rwxr-xr-x | taskcluster/scripts/misc/build-gcc-mingw32.sh | 27 |
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 |