Bug 866094 - add ability in mozinfo to determine if the build is asan. r=ted

This commit is contained in:
Joel Maher 2013-05-07 12:46:46 -04:00
parent d4ed7431f7
commit cf9a7de1a4
2 changed files with 4 additions and 0 deletions

View File

@ -80,6 +80,9 @@ def build_dict(env=os.environ):
# crashreporter
d["crashreporter"] = 'MOZ_CRASHREPORTER' in env and env['MOZ_CRASHREPORTER'] == '1'
# asan
d["asan"] = 'MOZ_ASAN' in env and env['MOZ_ASAN'] == '1'
return d
def write_json(file, env=os.environ):

View File

@ -9192,6 +9192,7 @@ UNIVERSAL_BINARY=${UNIVERSAL_BINARY} \
MOZ_CRASHREPORTER=${MOZ_CRASHREPORTER} \
MOZ_APP_NAME=${MOZ_APP_NAME} \
TOPSRCDIR=${_topsrcdir} \
MOZ_ASAN=${MOZ_ASAN} \
$PYTHON ${_topsrcdir}/config/writemozinfo.py ./mozinfo.json.tmp
if cmp -s ./mozinfo.json.tmp ./mozinfo.json; then
rm ./mozinfo.json.tmp