# We still need to build with debug symbols
ac_add_options --disable-debug
ac_add_options --enable-optimize="-O2 -gline-tables-only"
ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL}
MOZ_AUTOMATION_UPDATE_PACKAGING=${MOZ_AUTOMATION_UPDATE_PACKAGING-1}
ac_add_options --with-google-api-keyfile=/builds/gapi.data
ac_add_options --with-mozilla-api-keyfile=/builds/mozilla-desktop-geoloc-api.key

. $topsrcdir/build/mozconfig.stylo

# ASan specific options on Linux
ac_add_options --enable-valgrind

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

ac_add_options --enable-address-sanitizer-reporter

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

# Need this to add source information into platform.ini
export MOZILLA_OFFICIAL=1

# Enable Telemetry
# The channel reported by Telemetry here will be "nightly-asan" as specified
# in the respective override pref (toolkit.telemetry.overrideUpdateChannel),
# while the build otherwise identifies as "nightly" to receive its updates.
export MOZ_TELEMETRY_REPORTING=1

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