memory/replace/dmd/moz.build
author Mozilla Releng Treescript <release+treescript@mozilla.org>
Thu, 15 Apr 2021 23:26:15 +0000
changeset 643903 a473e0bc593957d00cfcd5c4f7a4673d938317e1
parent 624670 994ae8e4833c90447d91f0e26a718573cff5a514
permissions -rw-r--r--
No bug - Tagging 38ee7c9c51c5c95d854c6e9eaa962f21d4f17753 with FIREFOX_88_0_BUILD2 a=release CLOSED TREE DONTBUILD

# -*- 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 += [
    "DMD.h",
]

UNIFIED_SOURCES += [
    "DMD.cpp",
]

if not CONFIG["MOZ_REPLACE_MALLOC_STATIC"]:
    UNIFIED_SOURCES += [
        "/mfbt/HashFunctions.cpp",
        "/mfbt/JSONWriter.cpp",
        "/mfbt/Poison.cpp",
        "/mozglue/misc/StackWalk.cpp",
    ]
    if CONFIG["OS_ARCH"] == "WINNT":
        OS_LIBS += [
            "dbghelp",
        ]

ReplaceMalloc("dmd")

DEFINES["MOZ_NO_MOZALLOC"] = True
DEFINES["IMPL_MFBT"] = True

if CONFIG["MOZ_OPTIMIZE"]:
    DEFINES["MOZ_OPTIMIZE"] = True

DisableStlWrapping()

TEST_DIRS += ["test"]