2008-02-06 15:06:50 -08:00
|
|
|
#
|
2012-05-29 08:52:43 -07:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2008-02-06 15:06:50 -08:00
|
|
|
|
2012-12-07 00:32:24 -08:00
|
|
|
ifndef MOZ_JEMALLOC3
|
2008-04-30 00:14:44 -07:00
|
|
|
ifeq ($(OS_ARCH),SunOS)
|
|
|
|
ifndef GNU_CC
|
|
|
|
MODULE_OPTIMIZE_FLAGS = -xO5
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2011-09-02 23:19:06 -07:00
|
|
|
ifeq (Linux,$(OS_TARGET))
|
2008-02-25 12:25:25 -08:00
|
|
|
#XXX: PGO on Linux causes problems here
|
|
|
|
# See bug 419470
|
|
|
|
NO_PROFILE_GUIDED_OPTIMIZE = 1
|
2008-02-06 15:06:50 -08:00
|
|
|
endif
|
2012-06-07 01:41:59 -07:00
|
|
|
endif
|
2008-02-06 15:06:50 -08:00
|
|
|
|
2012-12-07 00:32:24 -08:00
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/memory/build
|
|
|
|
|
2012-06-19 22:22:40 -07:00
|
|
|
# For non release/esr builds, enable (some) fatal jemalloc assertions. This
|
|
|
|
# helps us catch memory errors. See bug 764192 for details on what
|
|
|
|
# MOZ_TEMP_INVESTIGATION is for.
|
2012-06-13 06:10:12 -07:00
|
|
|
ifeq (,$(filter release esr,$(MOZ_UPDATE_CHANNEL)))
|
2012-06-19 22:22:40 -07:00
|
|
|
DEFINES += -DMOZ_JEMALLOC_HARD_ASSERTS -DMOZ_TEMP_INVESTIGATION
|
2012-06-13 06:10:12 -07:00
|
|
|
endif
|
|
|
|
|
2012-07-11 07:55:39 -07:00
|
|
|
DEFINES += -Dabort=moz_abort
|
|
|
|
|
2012-12-07 00:32:24 -08:00
|
|
|
ifdef MOZ_REPLACE_MALLOC
|
|
|
|
DEFINES += -DMOZ_REPLACE_MALLOC
|
|
|
|
endif
|
|
|
|
|
|
|
|
DEFINES += -DMOZ_JEMALLOC_IMPL
|