mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
b9cdcbef46
Only sanitizer builds require a native llvm-symbolizer executable. Ideally, we'd build llvm-symbolizer from scratch, which would be faster, but for now, let's go the easy route and just extract it from the corresponding native clang builds. We don't actually do anything with the llvm-symbolizer executable on android builds, so we don't install it in $FINAL_TARGET, avoilding the dependency on android builds (plus, we actually don't have an android-native llvm-symbolizer, so even if it were already shipped, it would be the wrong file). Differential Revision: https://phabricator.services.mozilla.com/D101076
20 lines
574 B
Plaintext
20 lines
574 B
Plaintext
. "$topsrcdir/build/unix/mozconfig.unix"
|
|
|
|
export LLVM_SYMBOLIZER="$MOZ_FETCHES_DIR/llvm-symbolizer/llvm-symbolizer"
|
|
|
|
# Enable TSan specific code and build workarounds
|
|
ac_add_options --enable-thread-sanitizer
|
|
|
|
# The ThreadSanitizer is not compatible with sandboxing
|
|
# (see bug 1182565)
|
|
ac_add_options --disable-sandbox
|
|
|
|
# These are required by TSan
|
|
ac_add_options --disable-jemalloc
|
|
ac_add_options --disable-crashreporter
|
|
ac_add_options --disable-profiling
|
|
|
|
# Keep symbols to symbolize TSan traces
|
|
ac_add_options --enable-debug-symbols
|
|
ac_add_options --disable-install-strip
|