Bug 1659806 - Set -fcrash-diagnostics-dir on Android CI builds r=geckoview-reviewers,froydnj,agi

This will make clang put reproducers for compiler crashes into the artifacts upload directory. We've been doing this on other platforms for a while but it seems Android was left out.

Differential Revision: https://phabricator.services.mozilla.com/D87482
This commit is contained in:
David Major 2020-08-18 19:16:42 +00:00
Родитель 959b5eaaee
Коммит 69c3b9a896
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -28,6 +28,8 @@ if [ -z "$NO_NDK" -a -z "$USE_ARTIFACT" ]; then
# We use our own clang instead of the NDK's clang.
CC="$MOZ_FETCHES_DIR/clang/bin/clang"
CXX="$MOZ_FETCHES_DIR/clang/bin/clang++"
CFLAGS="$CFLAGS -fcrash-diagnostics-dir=${UPLOAD_PATH}"
CXXFLAGS="$CXXFLAGS -fcrash-diagnostics-dir=${UPLOAD_PATH}"
ac_add_options --with-android-ndk="$MOZ_FETCHES_DIR/android-ndk"
# Make sure that any host binaries we build use whatever libraries clang
# linked against, rather than what's on the system.