Bug 1379032 - Use -Oz as optimization flag on android/clang. r=froydnj

Due to https://github.com/android-ndk/ndk/issues/133#issuecomment-308549264 and bug 1163171 comment #14, we should use -Oz instead of -Os on Android/clang

MozReview-Commit-ID: 1T6fI87sa33

--HG--
extra : rebase_source : 84f912c59ecdabef9e606f89f72f00eb158846d5
This commit is contained in:
Makoto Kato 2017-07-07 16:30:21 +09:00
Родитель bc64b89a6a
Коммит 2e2e84007a
1 изменённых файлов: 5 добавлений и 2 удалений

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

@ -867,9 +867,12 @@ case "$target" in
fi
MOZ_GFX_OPTIMIZE_MOBILE=1
MOZ_OPTIMIZE_FLAGS="-Os"
if test -z "$CLANG_CC"; then
MOZ_OPTIMIZE_FLAGS="-freorder-blocks -fno-reorder-functions $MOZ_OPTIMIZE_FLAGS"
MOZ_OPTIMIZE_FLAGS="-freorder-blocks -fno-reorder-functions -Os"
else
# From https://github.com/android-ndk/ndk/issues/133#issuecomment-308549264
# -Oz is smaller than -Os on clang.
MOZ_OPTIMIZE_FLAGS="-Oz"
fi
;;