diff --git a/build/automationutils.py b/build/automationutils.py index 1dfd7a470fd..abd3da8a0db 100644 --- a/build/automationutils.py +++ b/build/automationutils.py @@ -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