Skip to content

Commit

Permalink
Bug 1379032 - Use -Oz as optimization flag on android/clang. r=froydnj
Browse files Browse the repository at this point in the history
Due to android/ndk#133 (comment) and bug 1163171 comment mozilla#14, we should use -Oz instead of -Os on Android/clang

MozReview-Commit-ID: 1T6fI87sa33
  • Loading branch information
makotokato committed Jul 7, 2017
1 parent 6f9de1e commit 44b9150
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions old-configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
;;

Expand Down

0 comments on commit 44b9150

Please sign in to comment.