summaryrefslogtreecommitdiffstats
path: root/comm/mail/config/mozconfigs/macosx64-aarch64/common-opt
blob: f1f39b7c537d580cf0bb840d25d836dd87bb1548 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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

# Package js shell.
export MOZ_PACKAGE_JSSHELL=1

ac_add_options --target=aarch64-apple-darwin

# As of Clang 13, the default is -mcpu=apple-m1 when using a aarch64-apple-macos target,
# but we're using apple64-apple-darwin, which defaults to -mcpu=apple-a7, which disables
# a bunch of # performance-enabling CPU features.
# TODO: We'll want to switch to aarch64-apple-macos eventually.
export CFLAGS="$CFLAGS -mcpu=apple-m1"
export CXXFLAGS="$CXXFLAGS -mcpu=apple-m1"