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 LIBRARY_DEFINES["MOZ_HAS_MOZGLUE"] = True
DEFINES["MOZ_MEMORY_IMPL"] = True DEFINES["MOZ_MEMORY_IMPL"] = True
if CONFIG["MOZ_BUILD_APP"] == "memory":
DEFINES["IMPL_MFBT"] = True
if CONFIG["MOZ_REPLACE_MALLOC"]: if CONFIG["MOZ_REPLACE_MALLOC"]:
EXPORTS += [ EXPORTS += [
"replace_malloc.h", "replace_malloc.h",

View file

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

View file

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