Files
tubestation/build/unix/mozconfig.tsan
Mike Hommey a87f0ce762 Bug 1927983 - Clean-up in-tree mozconfigs. r=firefox-build-system-reviewers,geckoview-reviewers,sergesanspaille,m_kato
-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
2024-10-31 23:39:04 +00:00

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