Bug 1437201 - Part 0: Use toolchain clang for host compiler on Android. r=froydnj

MozReview-Commit-ID: DgwfKbjEuIq

--HG--
extra : rebase_source : cdd73c729a063507b841297520cafb8d20a8dc65
This commit is contained in:
Nick Alexander 2018-02-13 10:32:18 -08:00
Родитель 5e9435a262
Коммит 68000223b0
1 изменённых файлов: 5 добавлений и 22 удалений

Просмотреть файл

@ -10,28 +10,11 @@ fi
MOZ_AUTOMATION_L10N_CHECK=0
. "$topsrcdir/build/mozconfig.common"
# For actual Android builds in TaskCluster, the system image is Debian,
# and we use the Java JRE/JDK from the system, as well as the system
# GCC for the host compiler. l10n builds are still special, however:
# they are run on older CentOS systems, and l10n builds on release are
# still run on Buildbot. So we have to set things up so this mozconfig
# works in all cases.
if [ -f /etc/debian_version ]; then
# We're on Debian, there's nothing to do.
true
elif [ ! -f /etc/redhat-release ] || [ "$(< /etc/redhat-release)" != "CentOS release 6.2 (Final)" ]; then
# set JAVA_HOME to find the JRE/JDK from tooltool. Several scripts in the JDK
# assume `java` is in PATH, so set that too. To see how this tarball is built,
# see taskcluster/scripts/builder/build-android-dependencies/repackage-jdk-centos.sh
export JAVA_HOME="$topsrcdir/java_home"
export PATH="$PATH:$topsrcdir/java_home/bin"
mk_add_options "export JAVA_HOME=$topsrcdir/java_home"
mk_add_options "export PATH=$PATH:$topsrcdir/java_home/bin"
HOST_CC="$topsrcdir/gcc/bin/gcc"
HOST_CXX="$topsrcdir/gcc/bin/g++"
fi
# For Android builds in TaskCluster, the system image is Debian, and
# we use the Java JRE/JDK from the system. We use a custom clang for
# the host compiler.
HOST_CC="$topsrcdir/clang/bin/clang"
HOST_CXX="$topsrcdir/clang/bin/clang++"
# Build Fennec
ac_add_options --enable-application=mobile/android