build/unix/mozconfig.asan

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 MOZ_AUTOMATION_L10N_CHECK=0
     3 . "$topsrcdir/build/mozconfig.common"
     5 # Use Clang as specified in manifest
     6 export CC="$topsrcdir/clang/bin/clang -fgnu89-inline"
     7 export CXX="$topsrcdir/clang/bin/clang++"
     8 export LLVM_SYMBOLIZER="$topsrcdir/clang/bin/llvm-symbolizer"
    10 # Mandatory flags for ASan
    11 export ASANFLAGS="-fsanitize=address -Dxmalloc=myxmalloc -fPIC"
    12 export CFLAGS="$ASANFLAGS"
    13 export CXXFLAGS="$ASANFLAGS"
    14 export LDFLAGS="-fsanitize=address"
    16 # Enable ASan specific code and build workarounds
    17 ac_add_options --enable-address-sanitizer
    19 # Mandatory options required for ASan builds (both on Linux and Mac)
    20 export MOZ_DEBUG_SYMBOLS=1
    21 ac_add_options --enable-debug-symbols
    22 ac_add_options --disable-install-strip
    23 ac_add_options --disable-jemalloc
    24 ac_add_options --disable-crashreporter
    25 ac_add_options --disable-elf-hack
    27 # Avoid dependency on libstdc++ 4.7
    28 ac_add_options --enable-stdcxx-compat

mercurial