1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/build/unix/mozconfig.asan Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,28 @@ 1.4 +MOZ_AUTOMATION_L10N_CHECK=0 1.5 + 1.6 +. "$topsrcdir/build/mozconfig.common" 1.7 + 1.8 +# Use Clang as specified in manifest 1.9 +export CC="$topsrcdir/clang/bin/clang -fgnu89-inline" 1.10 +export CXX="$topsrcdir/clang/bin/clang++" 1.11 +export LLVM_SYMBOLIZER="$topsrcdir/clang/bin/llvm-symbolizer" 1.12 + 1.13 +# Mandatory flags for ASan 1.14 +export ASANFLAGS="-fsanitize=address -Dxmalloc=myxmalloc -fPIC" 1.15 +export CFLAGS="$ASANFLAGS" 1.16 +export CXXFLAGS="$ASANFLAGS" 1.17 +export LDFLAGS="-fsanitize=address" 1.18 + 1.19 +# Enable ASan specific code and build workarounds 1.20 +ac_add_options --enable-address-sanitizer 1.21 + 1.22 +# Mandatory options required for ASan builds (both on Linux and Mac) 1.23 +export MOZ_DEBUG_SYMBOLS=1 1.24 +ac_add_options --enable-debug-symbols 1.25 +ac_add_options --disable-install-strip 1.26 +ac_add_options --disable-jemalloc 1.27 +ac_add_options --disable-crashreporter 1.28 +ac_add_options --disable-elf-hack 1.29 + 1.30 +# Avoid dependency on libstdc++ 4.7 1.31 +ac_add_options --enable-stdcxx-compat