mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 04:41:11 +00:00
Bug 1872320 - Fix --enable-project=memory build. r=pbone
Differential Revision: https://phabricator.services.mozilla.com/D211796
This commit is contained in:
parent
7b0b5f40c7
commit
3aa9a0a780
@ -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",
|
||||
|
@ -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"]
|
||||
|
@ -9,6 +9,7 @@ Program("mozjemalloc-info")
|
||||
SOURCES += [
|
||||
"/mfbt/Assertions.cpp",
|
||||
"/mfbt/RandomNum.cpp",
|
||||
"/mfbt/TaggedAnonymousMemory.cpp",
|
||||
"/mozglue/misc/StackWalk.cpp",
|
||||
"MozjemallocInfo.cpp",
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user