2014-06-16 10:17:21 -07:00
|
|
|
MOZ_AUTOMATION_TALOS_SENDCHANGE=0
|
|
|
|
MOZ_AUTOMATION_L10N_CHECK=0
|
|
|
|
|
2013-01-22 11:16:20 -08:00
|
|
|
. "$topsrcdir/build/mozconfig.common"
|
|
|
|
|
2012-06-26 09:26:57 -07:00
|
|
|
# Use Clang as specified in manifest
|
|
|
|
export CC="$topsrcdir/clang/bin/clang -fgnu89-inline"
|
|
|
|
export CXX="$topsrcdir/clang/bin/clang++"
|
2013-09-20 04:37:53 -07:00
|
|
|
export LLVM_SYMBOLIZER="$topsrcdir/clang/bin/llvm-symbolizer"
|
2012-05-15 15:24:14 -07:00
|
|
|
|
|
|
|
# Mandatory flags for ASan
|
2013-03-11 06:33:36 -07:00
|
|
|
export ASANFLAGS="-fsanitize=address -Dxmalloc=myxmalloc -fPIC"
|
2012-05-15 15:24:14 -07:00
|
|
|
export CFLAGS="$ASANFLAGS"
|
|
|
|
export CXXFLAGS="$ASANFLAGS"
|
2013-03-11 06:33:36 -07:00
|
|
|
export LDFLAGS="-fsanitize=address"
|
2012-05-15 15:24:14 -07:00
|
|
|
|
|
|
|
# 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-elf-hack
|
2013-07-26 10:43:12 -07:00
|
|
|
|
|
|
|
# Avoid dependency on libstdc++ 4.7
|
|
|
|
ac_add_options --enable-stdcxx-compat
|