build/unix/mozconfig.asan
author Marco Castelluccio <mcastelluccio@mozilla.com>
Thu, 05 Jul 2018 01:59:35 +0100
changeset 425557 b6f878099e46a609f1e504e12e14afc89307798c
parent 404158 907a3ecfa24c4ef9c55e12bee57fcafb5c40db60
child 434010 6fd2ee9bacf2869ba06830ea0e15da28ef2dea75
permissions -rw-r--r--
Bug 1473443 - Make test_process_error.xul not delete the dumps, as the mochitest harness is doing it automatically. r=gsvelto

MOZ_AUTOMATION_L10N_CHECK=0

. "$topsrcdir/build/mozconfig.common"

# Use Clang as specified in manifest
export CC="$topsrcdir/clang/bin/clang -fgnu89-inline"
export CXX="$topsrcdir/clang/bin/clang++"
export LLVM_SYMBOLIZER="$topsrcdir/clang/bin/llvm-symbolizer"

# Use a newer binutils, from the tooltool gcc package, if it's there
if [ -e "$topsrcdir/gcc/bin/ld" ]; then
    export CC="$CC -B $topsrcdir/gcc/bin"
    export CXX="$CXX -B $topsrcdir/gcc/bin"
fi

# Enable ASan specific code and build workarounds
ac_add_options --enable-address-sanitizer

# Mandatory options required for ASan builds (both on Linux and Mac)
export MOZ_DEBUG_SYMBOLS=1
ac_add_options --enable-debug-symbols
ac_add_options --disable-install-strip
ac_add_options --disable-jemalloc
ac_add_options --disable-crashreporter
ac_add_options --disable-profiling

. "$topsrcdir/build/unix/mozconfig.stdcxx"