1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/memory/mozjemalloc/moz.build Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,38 @@ 1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- 1.5 +# vim: set filetype=python: 1.6 +# This Source Code Form is subject to the terms of the Mozilla Public 1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.9 + 1.10 +EXPORTS += [ 1.11 + 'jemalloc_types.h', 1.12 +] 1.13 + 1.14 +if not CONFIG['MOZ_JEMALLOC3']: 1.15 + SOURCES += [ 1.16 + 'jemalloc.c', 1.17 + ] 1.18 + LIBRARY_NAME = 'jemalloc' 1.19 + FORCE_STATIC_LIB = True 1.20 + 1.21 +# For non release/esr builds, enable (some) fatal jemalloc assertions. This 1.22 +# helps us catch memory errors. 1.23 +if CONFIG['MOZ_UPDATE_CHANNEL'] not in ('release', 'esr'): 1.24 + DEFINES['MOZ_JEMALLOC_HARD_ASSERTS'] = True 1.25 + 1.26 +DEFINES['abort'] = 'moz_abort' 1.27 + 1.28 +if CONFIG['MOZ_REPLACE_MALLOC']: 1.29 + DEFINES['MOZ_REPLACE_MALLOC'] = True 1.30 + 1.31 +DEFINES['MOZ_JEMALLOC_IMPL'] = True 1.32 + 1.33 +#XXX: PGO on Linux causes problems here 1.34 +# See bug 419470 1.35 +if CONFIG['OS_TARGET'] == 'Linux': 1.36 + NO_PGO = True 1.37 + 1.38 +LOCAL_INCLUDES += [ 1.39 + '/memory/build', 1.40 +] 1.41 +