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 #14, we should use -Oz instead of -Os on Android/clang

MozReview-Commit-ID: 1T6fI87sa33

UltraBlame original commit: 29ef8a111035ecbfd1cc50bd2cab3435384ad0b0
  • Loading branch information
marco-c committed Oct 1, 2019
1 parent 6815489 commit 671e046
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 671e046

Please sign in to comment.