summaryrefslogtreecommitdiffstats
path: root/build/android/envsetup_functions.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build/android/envsetup_functions.sh')
-rwxr-xr-xbuild/android/envsetup_functions.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/build/android/envsetup_functions.sh b/build/android/envsetup_functions.sh
index da8a4ee..f91e5da 100755
--- a/build/android/envsetup_functions.sh
+++ b/build/android/envsetup_functions.sh
@@ -33,6 +33,9 @@ common_vars_defines() {
fi
toolchain_version="4.6"
+ # We directly set the gcc_version since we know what we use, and it should
+ # be set to xx instead of x.x. Refer the output of compiler_version.py.
+ gcc_version="46"
toolchain_target=$(basename \
${ANDROID_NDK_ROOT}/toolchains/${toolchain_arch}-${toolchain_version})
toolchain_path="${ANDROID_NDK_ROOT}/toolchains/${toolchain_target}"\
@@ -70,6 +73,7 @@ common_vars_defines() {
# to canonicalize them (remove double '/', remove trailing '/', etc).
DEFINES="OS=android"
DEFINES+=" host_os=${host_os}"
+ DEFINES+=" gcc_version=${gcc_version}"
if [[ -n "$CHROME_ANDROID_OFFICIAL_BUILD" ]]; then
DEFINES+=" branding=Chrome"