mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
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:
parent
78c14d3a17
commit
9f6aa5dd08
@ -541,7 +541,7 @@ case "$target" in
|
|||||||
|
|
||||||
if test -z "$CLANG_CC"; then
|
if test -z "$CLANG_CC"; then
|
||||||
MOZ_OPTIMIZE_FLAGS="-freorder-blocks -fno-reorder-functions -Os"
|
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
|
# From https://github.com/android-ndk/ndk/issues/133#issuecomment-308549264
|
||||||
# -Oz is smaller than -Os on clang.
|
# -Oz is smaller than -Os on clang.
|
||||||
MOZ_OPTIMIZE_FLAGS="-Oz"
|
MOZ_OPTIMIZE_FLAGS="-Oz"
|
||||||
@ -560,8 +560,6 @@ case "$target" in
|
|||||||
AC_TRY_LINK(,,[MOZ_OPTIMIZE_LDFLAGS="$MOZ_OPTIMIZE_LDFLAGS $DISABLE_OUTLINER"])
|
AC_TRY_LINK(,,[MOZ_OPTIMIZE_LDFLAGS="$MOZ_OPTIMIZE_LDFLAGS $DISABLE_OUTLINER"])
|
||||||
LDFLAGS="$_SAVE_LDFLAGS"
|
LDFLAGS="$_SAVE_LDFLAGS"
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
MOZ_OPTIMIZE_FLAGS="-O2"
|
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user