Fix ninja build for Android after http://codereview.chromium.org/10836080/

CC/CXX/AR now refer to target compilation.
We need to specifically set the host toolchain (CC_host, CX_host, AR_host) as well.

Review URL: https://chromiumcodereview.appspot.com/10836192

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151110 0039d316-1c4b-4281-b951-d872f2087c98
parent 14aa5a42
......@@ -95,10 +95,13 @@ if [[ -d $GOMA_DIR ]]; then
fi
export ANDROID_GOMA_WRAPPER
export CC_target=$(basename ${ANDROID_TOOLCHAIN}/*-gcc)
export CXX_target=$(basename ${ANDROID_TOOLCHAIN}/*-g++)
export LINK_target=$(basename ${ANDROID_TOOLCHAIN}/*-gcc)
export AR_target=$(basename ${ANDROID_TOOLCHAIN}/*-ar)
export CC=$(basename ${ANDROID_TOOLCHAIN}/*-gcc)
export CXX=$(basename ${ANDROID_TOOLCHAIN}/*-g++)
export LINK=$(basename ${ANDROID_TOOLCHAIN}/*-gcc)
export AR=$(basename ${ANDROID_TOOLCHAIN}/*-ar)
export CC_host=gcc
export CXX_host=g++
export AR_host=ar
# Performs a gyp_chromium run to convert gyp->Makefile for android code.
android_gyp() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment