Skip to content

Commit

Permalink
devops: firefox build now requires newer MacOS SDK to build against (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
aslushnikov committed Dec 16, 2020
1 parent 97be66b commit 0af34a4
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions browser_patches/firefox/build.sh
Expand Up @@ -4,6 +4,10 @@ set +x

RUST_VERSION="1.47.0"
CBINDGEN_VERSION="0.15.0"
# Certain minimal SDK Version is required by firefox
MACOS_SDK_VERSION="10.12"
# XCode version can be determined from https://en.wikipedia.org/wiki/Xcode
XCODE_VERSION_WITH_REQUIRED_SDK_VERSION="8.3.3"

trap "cd $(pwd -P)" EXIT

Expand All @@ -19,16 +23,18 @@ fi


if [[ "$(uname)" == "Darwin" ]]; then
# Firefox currently does not build on 10.15 out of the box - it requires SDK for 10.11.
# Firefox currently does not build on 10.15 out of the box - it requires SDK for 10.12.
# Make sure the SDK is out there.
if ! [[ -d $HOME/SDK-archive/MacOSX10.11.sdk ]]; then
echo "As of Jun 2020, Firefox does not build on Mac without 10.11 SDK."
echo "Check out instructions on getting 10.11 sdk at https://firefox-source-docs.mozilla.org/setup/macos_build.html"
echo "and make sure to put SDK to $HOME/SDK-archive/MacOSX10.11.sdk/"
if ! [[ -d $HOME/SDK-archive/MacOSX${MACOS_SDK_VERSION}.sdk ]]; then
echo "As of Dec 2020, Firefox does not build on Mac without ${MACOS_SDK_VERSION} SDK."
echo "Download XCode ${XCODE_VERSION_WITH_REQUIRED_SDK_VERSION} from https://developer.apple.com/download/more/ and"
echo "extract SDK to $HOME/SDK-archive/MacOSX${MACOS_SDK_VERSION}.sdk"
echo ""
echo "More info: https://firefox-source-docs.mozilla.org/setup/macos_build.html"
exit 1
else
echo "-- configuting .mozconfig with 10.11 SDK path"
echo "ac_add_options --with-macos-sdk=$HOME/SDK-archive/MacOSX10.11.sdk/" > .mozconfig
echo "-- configuting .mozconfig with ${MACOS_SDK_VERSION} SDK path"
echo "ac_add_options --with-macos-sdk=$HOME/SDK-archive/MacOSX${MACOS_SDK_VERSION}.sdk/" > .mozconfig
fi
echo "-- building on Mac"
elif [[ "$(uname)" == "Linux" ]]; then
Expand Down

0 comments on commit 0af34a4

Please sign in to comment.