build.sh: Add --gcc-version=<version> option.

This adds an option to specify an alternate version of GCC,
which sources must still be under toolchain/gcc/, e.g. if

   --gcc-version=6.2.0

is used, then this will look for toolchain/gcc/gcc-6.2.0
and will generate a package named x86_64-linux-gcc-6.2.tar.bz2

This is mostly useful for experimentation when trying to update
to a newer toolchain.

+ Remove unused variables: ARCH, FORCE_ALL and FORCE_BUILD

Change-Id: Idef93abeb9f860ec75a4b780f58aa015205b37ed
1 file changed
tree: 135709b3b51ed66845e17dfa4113301ce6484699
  1. mingw-w64-v5.0.0/
  2. build.sh
  3. README.md
  4. README.version
README.md

Building Mingw for Android

The build.sh script in this directory is used to build mingw for Android.

Mingw is built from the mingw branch of AOSP. To fetch the sources:

repo init -u https://android.googlesource.com/platform/manifest -b mingw

# Googlers, use
repo init -u \
    persistent-https://android.git.corp.google.com/platform/manifest -b mingw

To build, run build.sh. Run with --help for a list of options.