Bug 929024 - Fix ASan symbolizing for mochitests. r=ted

--HG--
extra : rebase_source : f6b4ee3a5d84ba1987f2a35abe9b28c1d45efb2e
This commit is contained in:
Christian Holler 2013-10-21 20:11:07 +02:00
Родитель 8e3c417bf6
Коммит ab08cf6060
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -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