mozconfig.tsan 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. MOZ_AUTOMATION_L10N_CHECK=0
  2. . "$topsrcdir/build/mozconfig.common"
  3. # Use Clang as specified in manifest
  4. export CC="$topsrcdir/clang/bin/clang"
  5. export CXX="$topsrcdir/clang/bin/clang++"
  6. export LLVM_SYMBOLIZER="$topsrcdir/clang/bin/llvm-symbolizer"
  7. # Use a newer binutils, from the tooltool gcc package, if it's there
  8. if [ -e "$topsrcdir/gcc/bin/ld" ]; then
  9. export CC="$CC -B $topsrcdir/gcc/bin"
  10. export CXX="$CXX -B $topsrcdir/gcc/bin"
  11. fi
  12. # Enable TSan specific code and build workarounds
  13. ac_add_options --enable-thread-sanitizer
  14. # The ThreadSanitizer is not compatible with sandboxing
  15. # (see bug 1182565)
  16. ac_add_options --disable-sandbox
  17. # These are required by TSan
  18. ac_add_options --disable-jemalloc
  19. ac_add_options --disable-crashreporter
  20. ac_add_options --disable-elf-hack
  21. ac_add_options --enable-pie
  22. # Keep symbols to symbolize TSan traces
  23. ac_add_options --disable-install-strip
  24. # -gline-tables-only results in significantly smaller binaries.
  25. ac_add_options --enable-debug-symbols="-gline-tables-only"
  26. . "$topsrcdir/build/unix/mozconfig.stdcxx"