-gline-tables-only is better passed to --enable-debug or --enable-debug-symbols than via abuse of --enable-optimize. --enable-optimize was being passed -O2 because passing -gline-tables-only would have removed optimizations. This has the side effect of changing the optimization level on macOS, though, so there we keep the override. --disable-debug is the default, remove it. --enable-project=browser is the default, remove it. --enable-optimize is the default, remove it. --enable-debug-symbols is the default, remove it. --disable-sandbox is the default on tsan builds, remove it. --enable-optimize="-O2 -g" is, essentially, the default, remove it. --with-android-min-sdk=21 is the default, remove it. X11 builds only have the X11 headers, so technically speaking the cairo-gtk3 toolkit is fine because it does the right fallback, but using cairo-gtk3-x11-only is more explicit and would avoid surprises. MOZ_DEBUG_SYMBOLS has been a no-op for essentially forever. Differential Revision: https://phabricator.services.mozilla.com/D227311
13 lines
388 B
Plaintext
13 lines
388 B
Plaintext
export LLVM_SYMBOLIZER="$MOZ_FETCHES_DIR/llvm-symbolizer/bin/llvm-symbolizer"
|
|
|
|
# Enable TSan specific code and build workarounds
|
|
ac_add_options --enable-thread-sanitizer
|
|
|
|
# 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 --disable-install-strip
|