commit | f1c3ad6cac0465017759cce0cb381ce66760d907 | [log] [tgz] |
---|---|---|
author | Than McIntosh <thanm@google.com> | Thu Jan 14 14:08:29 2016 -0500 |
committer | Than McIntosh <thanm@google.com> | Thu Jan 14 15:04:35 2016 -0500 |
tree | c6ce0987896c065c8422660cbf7fa19667595f69 | |
parent | 9d871e98c80898042fb8cfd20a58feadae1ba60c [diff] |
Fix toolchain/gcc build for mingw. Theses changes are intended to restore the ability to build toolchain/gcc cross compiler for non-Android targets (in this specific case, to allow us to compile toolchain/gcc as part of the mingw-w64 build). What has happened over time is that references android-specific synbols and constructs have crept into the non-target-specific portions of the gcc code. I've done my best to push these things back into the config/* subtree. Bug: 26523949 Change-Id: I59334e791875632d51093207c298052a034d2f4a
The following process is used to build the GCC that is used by both the Android platfrom and the NDK.
Both Linux and Windows toolchains are built on Linux machines. Windows host binaries are built with mingw. Building binaries for Mac OS X should be built using 10.8 to ensure compatibility with Android's minimum supported hosts.
Check out the branch gcc
repo init -u https://android.googlesource.com/platform/manifest -b gcc # Googlers, use repo init -u \ persistent-https://android.git.corp.google.com/platform/manifest \ -b gcc
Additional Linux Dependencies (available from apt):
Mac OS X also requires Xcode.
# Additional options and toolchain names will be show with --help. $ python build.py --toolchain TOOLCHAIN_NAME
$ python build.py --system windows TOOLCHAIN_NAME