Bug 1872320 - Fix --enable-project=memory build. r=pbone

Differential Revision: https://phabricator.services.mozilla.com/D211796
This commit is contained in:
Mike Hommey 2024-05-28 01:13:59 +00:00
parent 7b0b5f40c7
commit 3aa9a0a780
3 changed files with 5 additions and 1 deletions

View File

@ -16,6 +16,9 @@ EXPORTS += [
LIBRARY_DEFINES["MOZ_HAS_MOZGLUE"] = True
DEFINES["MOZ_MEMORY_IMPL"] = True
if CONFIG["MOZ_BUILD_APP"] == "memory":
DEFINES["IMPL_MFBT"] = True
if CONFIG["MOZ_REPLACE_MALLOC"]:
EXPORTS += [
"replace_malloc.h",

View File

@ -17,5 +17,5 @@ CppUnitTests(
)
# The gtests won't work in a SpiderMonkey-only build or a build without
# jemalloc.
if CONFIG["MOZ_PHC"]:
if CONFIG["MOZ_PHC"] and CONFIG["MOZ_BUILD_APP"] != "memory":
TEST_DIRS += ["gtest"]

View File

@ -9,6 +9,7 @@ Program("mozjemalloc-info")
SOURCES += [
"/mfbt/Assertions.cpp",
"/mfbt/RandomNum.cpp",
"/mfbt/TaggedAnonymousMemory.cpp",
"/mozglue/misc/StackWalk.cpp",
"MozjemallocInfo.cpp",
]