memory/mozjemalloc/moz.build
author Masayuki Nakano <masayuki@d-toybox.com>
Thu, 16 Mar 2017 16:26:43 +0900
changeset 398554 8e72178c3893c377972209cccd2e561e1ec06c7d
parent 393147 972714aa03b210476c57991c58e30ea9f98745e2
child 408995 0e6e8a7b9973fea4fdeca1e7c49df2674d2a984a
permissions -rw-r--r--
Bug 1339331 TextEventDispatcher should replace \r in composition string with \n and TextComposition should allow to input \n with composition events r=m_kato According to ATOK's behavior, IME may send different line breaker from its platform's standard. Therefore, we should treat \r as \n too. Additionally, currently, TextComposition doesn't allow to input \n with composition. However, this was added for preventing to see odd control characters as boxes with code point. Therefore, we should allow \n for IMEs. (It was allowed, this limitation is unexpected when I reviewed the patch to reject control characters in TextComposition.) MozReview-Commit-ID: DzGSMgp89Av

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# 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/.

EXPORTS += [
    'jemalloc_types.h',
]

if not CONFIG['MOZ_JEMALLOC4']:
    SOURCES += [
        'jemalloc.c',
    ]
    FINAL_LIBRARY = 'memory'

    # See bug 422055.
    if CONFIG['OS_ARCH'] == 'SunOS' and not CONFIG['GNU_CC'] \
            and CONFIG['MOZ_OPTIMIZE']:
        CFLAGS += ['-xO5']

# For non release/esr builds, enable (some) fatal jemalloc assertions.  This
# helps us catch memory errors.
if CONFIG['MOZ_UPDATE_CHANNEL'] not in ('release', 'esr'):
    DEFINES['MOZ_JEMALLOC_HARD_ASSERTS'] = True

DEFINES['abort'] = 'moz_abort'

DEFINES['MOZ_JEMALLOC_IMPL'] = True

LOCAL_INCLUDES += [
    '/memory/build',
]

if CONFIG['GNU_CC']:
    CFLAGS += ['-Wno-unused'] # too many annoying warnings from mfbt/ headers

if CONFIG['_MSC_VER']:
    CFLAGS += ['-wd4273'] # inconsistent dll linkage (bug 558163)