зеркало из https://github.com/mozilla/gecko-dev.git
Bug 929024 - Fix ASan symbolizing for mochitests. r=ted
--HG-- extra : rebase_source : f6b4ee3a5d84ba1987f2a35abe9b28c1d45efb2e
This commit is contained in:
Родитель
8e3c417bf6
Коммит
ab08cf6060
|
@ -449,6 +449,12 @@ def environment(xrePath, env=None, crashreporter=True):
|
|||
asan = bool(mozinfo.info.get("asan"))
|
||||
if asan and (mozinfo.isLinux or mozinfo.isMac):
|
||||
try:
|
||||
# Symbolizer support
|
||||
llvmsym = os.path.join(xrePath, "llvm-symbolizer")
|
||||
if os.path.isfile(llvmsym):
|
||||
env["ASAN_SYMBOLIZER_PATH"] = llvmsym
|
||||
log.info("ASan using symbolizer at %s", llvmsym)
|
||||
|
||||
totalMemory = systemMemory()
|
||||
|
||||
# Only 2 GB RAM or less available? Use custom ASan options to reduce
|
||||
|
|
Загрузка…
Ссылка в новой задаче