michael@0: MOZ_AUTOMATION_L10N_CHECK=0 michael@0: michael@0: . "$topsrcdir/build/mozconfig.common" michael@0: michael@0: # Use Clang as specified in manifest michael@0: export CC="$topsrcdir/clang/bin/clang -fgnu89-inline" michael@0: export CXX="$topsrcdir/clang/bin/clang++" michael@0: export LLVM_SYMBOLIZER="$topsrcdir/clang/bin/llvm-symbolizer" michael@0: michael@0: # Mandatory flags for ASan michael@0: export ASANFLAGS="-fsanitize=address -Dxmalloc=myxmalloc -fPIC" michael@0: export CFLAGS="$ASANFLAGS" michael@0: export CXXFLAGS="$ASANFLAGS" michael@0: export LDFLAGS="-fsanitize=address" michael@0: michael@0: # Enable ASan specific code and build workarounds michael@0: ac_add_options --enable-address-sanitizer michael@0: michael@0: # Mandatory options required for ASan builds (both on Linux and Mac) michael@0: export MOZ_DEBUG_SYMBOLS=1 michael@0: ac_add_options --enable-debug-symbols michael@0: ac_add_options --disable-install-strip michael@0: ac_add_options --disable-jemalloc michael@0: ac_add_options --disable-crashreporter michael@0: ac_add_options --disable-elf-hack michael@0: michael@0: # Avoid dependency on libstdc++ 4.7 michael@0: ac_add_options --enable-stdcxx-compat