зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1428158 - Enable static analysis on Android. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D20402 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
06d64cc640
Коммит
bab1ffc031
|
@ -12,9 +12,11 @@ MOZ_AUTOMATION_L10N_CHECK=0
|
||||||
|
|
||||||
# For Android builds in TaskCluster, the system image is Debian, and
|
# 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
|
# we use the Java JRE/JDK from the system. We use a custom clang for
|
||||||
# the host compiler.
|
# the host compiler. Make sure clang uses the c++ headers included with
|
||||||
HOST_CC="$topsrcdir/clang/bin/clang"
|
# clang, rather than the system headers which leads to incompatibility
|
||||||
HOST_CXX="$topsrcdir/clang/bin/clang++"
|
# later (when linking against the clang-provided libstdc++).
|
||||||
|
HOST_CC="$topsrcdir/clang/bin/clang --gcc-toolchain=$topsrcdir/clang"
|
||||||
|
HOST_CXX="$topsrcdir/clang/bin/clang++ --gcc-toolchain=$topsrcdir/clang"
|
||||||
|
|
||||||
# Build Fennec
|
# Build Fennec
|
||||||
ac_add_options --enable-application=mobile/android
|
ac_add_options --enable-application=mobile/android
|
||||||
|
@ -28,6 +30,8 @@ if [ -z "$NO_NDK" ]; then
|
||||||
CC="$topsrcdir/clang/bin/clang"
|
CC="$topsrcdir/clang/bin/clang"
|
||||||
CXX="$topsrcdir/clang/bin/clang++"
|
CXX="$topsrcdir/clang/bin/clang++"
|
||||||
ac_add_options --with-android-ndk="$topsrcdir/android-ndk"
|
ac_add_options --with-android-ndk="$topsrcdir/android-ndk"
|
||||||
|
# Enable static analysis plugin
|
||||||
|
export ENABLE_CLANG_PLUGIN=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL}
|
ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче