# We still need to build with debug symbols
ac_add_options --disable-debug
ac_add_options --enable-optimize="-O2 -gline-tables-only"

. $topsrcdir/build/mozconfig.stylo
. $topsrcdir/build/mozconfig.wasm-sandboxing

. $topsrcdir/build/unix/mozconfig.tsan
ac_add_options --disable-elf-hack

# Package js shell.
export MOZ_PACKAGE_JSSHELL=1

# Need this to prevent name conflicts with the normal nightly build packages
export MOZ_PKG_SPECIAL=tsan

# Disable telemetry
ac_add_options MOZ_TELEMETRY_REPORTING=

# Ensure Rust also gets the necessary instrumentation
export RUSTFLAGS="-Zsanitizer=thread"

# rustfmt is currently missing in Rust nightly
unset RUSTFMT

# Current Rust Nightly has warnings
ac_add_options --disable-warnings-as-errors

. "$topsrcdir/build/mozconfig.common.override"
