common-opt (1088B)
1 # This file is sourced by the nightly, beta, and release mozconfigs. 2 3 . $topsrcdir/build/macosx/mozconfig.common 4 5 ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL} 6 7 if test `uname -s` != Linux; then 8 APIKEYDIR="${APIKEYDIR:-${WORKSPACE}}" 9 else 10 APIKEYDIR="${APIKEYDIR:-/builds}" 11 fi 12 13 ac_add_options --with-google-location-service-api-keyfile=${APIKEYDIR}/gls-gapi.data 14 ac_add_options --with-google-safebrowsing-api-keyfile=${APIKEYDIR}/sb-gapi.data 15 ac_add_options --with-mozilla-api-keyfile=${APIKEYDIR}/mozilla-desktop-geoloc-api.key 16 17 # Needed to enable breakpad in application.ini 18 export MOZILLA_OFFICIAL=1 19 20 # Package js shell. 21 export MOZ_PACKAGE_JSSHELL=1 22 23 ac_add_options --target=aarch64-apple-darwin 24 25 # As of Clang 13, the default is -mcpu=apple-m1 when using a aarch64-apple-macos target, 26 # but we're using apple64-apple-darwin, which defaults to -mcpu=apple-a7, which disables 27 # a bunch of # performance-enabling CPU features. 28 # TODO: We'll want to switch to aarch64-apple-macos eventually. 29 export CFLAGS="$CFLAGS -mcpu=apple-m1" 30 export CXXFLAGS="$CXXFLAGS -mcpu=apple-m1"