Bug 1104634 - Force optimize mozjemalloc on --disable-optimize builds. r=gps

The reason for --disable-optimize is to make debugging easier, but not many
people actually need a high level of debuggability of the allocator itself.
This works around the issue that the Android NDK's definition of ffs is
broken when compiling without optimization, while avoiding to add yet another
configure test.
This commit is contained in:
Mike Hommey 2014-12-10 10:50:44 +09:00
Родитель 5e166635cb
Коммит 548d773d4e
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -4,6 +4,12 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
ifndef MOZ_JEMALLOC3
# Force optimize mozjemalloc on --disable-optimize builds.
# This works around the issue that the Android NDK's definition of ffs is
# broken when compiling without optimization, while avoiding to add yet another
# configure test.
MOZ_OPTIMIZE = 1
ifeq ($(OS_ARCH),SunOS)
ifndef GNU_CC
MODULE_OPTIMIZE_FLAGS = -xO5