commit | 9554b320f43eae57037ea27c334446e6c99481c5 | [log] [tgz] |
---|---|---|
author | Caroline Tice <cmtice@google.com> | Mon Sep 26 09:31:48 2016 -0700 |
committer | Caroline Tice <cmtice@google.com> | Tue Oct 04 13:02:43 2016 -0700 |
tree | aa102811fb362dbb99b7a69e9d1ae7dd257d9cd0 | |
parent | 535de7eb0179bdcd01fcd99f1dad6208250d3706 [diff] |
[GCC 4.9] Fix posix_memalign declaration. Remove the 'throw()' from posix_memalign declaration if __GLIBC__ is not defined, so that it matches declaration in bionic's stdlib.h (avoid conflicting decl error). Can't remove 'throw ()' altogether, because it IS in glibc's stdlib.h, which this has to match in ChromeOS. BUG=b:31366027 TEST=successfully built ChromeOS for x86, x86_64, arm, arm64 and ran HWTests on all; successfully built chromiumos-sdk. Built Android platform & kernel. Successfully ran NDK checkbuild.py script. Change-Id: I0a8b4daf5d10f56f7a318738a0946e4ad5b7dd90
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