Bug 1670948 - Restore nightly android build optimization to -Oz (currently -O2) r=dmajor

In Bug 1591725 we looked at trade offs between the faster -O2 and the increased binary size.
We have decided to not ship this, so restoring -Oz level optimization to nightly android.

Differential Revision: https://phabricator.services.mozilla.com/D93371
This commit is contained in:
Andrew Creskey 2020-10-13 17:03:31 +00:00
parent 78c14d3a17
commit 9f6aa5dd08

View File

@ -541,7 +541,7 @@ case "$target" in
if test -z "$CLANG_CC"; then
MOZ_OPTIMIZE_FLAGS="-freorder-blocks -fno-reorder-functions -Os"
elif test -n "$RELEASE_OR_BETA"; then
else
# From https://github.com/android-ndk/ndk/issues/133#issuecomment-308549264
# -Oz is smaller than -Os on clang.
MOZ_OPTIMIZE_FLAGS="-Oz"
@ -560,8 +560,6 @@ case "$target" in
AC_TRY_LINK(,,[MOZ_OPTIMIZE_LDFLAGS="$MOZ_OPTIMIZE_LDFLAGS $DISABLE_OUTLINER"])
LDFLAGS="$_SAVE_LDFLAGS"
fi
else
MOZ_OPTIMIZE_FLAGS="-O2"
fi
;;