Bug 849693 - Use the new -fsanitize=address flag in the asan mozconfig; r=decoder
authorEhsan Akhgari <ehsan@mozilla.com>
Mon, 11 Mar 2013 09:33:36 -0400
changeset 124362 db7aaa4e41844b03b3dd922db22fdf4978bf0394
parent 124361 2a8cfcbb89714b606a7bcd2d1ebf54fb6e0fb264
child 124363 17b65305f13195c96aad14b33f7edb5643b978d7
push id24417
push userryanvm@gmail.com
push dateMon, 11 Mar 2013 23:58:07 +0000
treeherdermozilla-central@7433bc4545c9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdecoder
bugs849693
milestone22.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 849693 - Use the new -fsanitize=address flag in the asan mozconfig; r=decoder DONTBUILD
build/unix/mozconfig.asan
--- a/build/unix/mozconfig.asan
+++ b/build/unix/mozconfig.asan
@@ -1,19 +1,19 @@
 . "$topsrcdir/build/mozconfig.common"
 
 # Use Clang as specified in manifest
 export CC="$topsrcdir/clang/bin/clang -fgnu89-inline"
 export CXX="$topsrcdir/clang/bin/clang++"
 
 # Mandatory flags for ASan
-export ASANFLAGS="-faddress-sanitizer -Dxmalloc=myxmalloc -fPIC"
+export ASANFLAGS="-fsanitize=address -Dxmalloc=myxmalloc -fPIC"
 export CFLAGS="$ASANFLAGS"
 export CXXFLAGS="$ASANFLAGS"
-export LDFLAGS="-faddress-sanitizer"
+export LDFLAGS="-fsanitize=address"
 
 # 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