# This file is sourced by the nightly and release mozconfigs.

. $topsrcdir/build/macosx/mozconfig.common

ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL}

# Needed to enable breakpad in application.ini
export MOZILLA_OFFICIAL=1

# For NSS symbols
export MOZ_DEBUG_SYMBOLS=1

export MOZ_TELEMETRY_REPORTING=1

# Package js shell.
export MOZ_PACKAGE_JSSHELL=1

ac_add_options --target=aarch64-apple-darwin
export MACOS_SDK_DIR=$MOZ_FETCHES_DIR/MacOSX11.0.sdk

# Xcode clang defaults to something similar to -mcpu=apple-a12, while upstream
# clang defaults to -mcpu=apple-a7, which disables a bunch of performance-enabling
# CPU features. TODO: this should be done by configure.
export CFLAGS="$CFLAGS -mcpu=apple-a12"
export CXXFLAGS="$CXXFLAGS -mcpu=apple-a12"

