Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

devops: stop using MacOS 10.12 SDK when building Firefox (#9452)

Andrey Lushnikov87f120fa3568
diff --git a/browser_patches/firefox-beta/build.sh b/browser_patches/firefox-beta/build.sh
index eff02e4d43..a9eb07e827 100755
--- a/browser_patches/firefox-beta/build.sh
+++ b/browser_patches/firefox-beta/build.sh
@@ -33,22 +33,6 @@ if [[ "$(uname)" == "Darwin" ]]; then
echo "ERROR: ${CURRENT_HOST_OS_VERSION} is not supported"
exit 1
fi
-
- # Firefox on Mac Intel requires SDK for 10.12 to work on old versions of MacOS.
- # Mac on Apple Silicon doesn't exist on old versions of MacOS, so this is not needed.
- if [[ "$(uname -m)" == "x86_64" ]]; then
- if ! [[ -d $HOME/SDK-archive/MacOSX${MACOS_SDK_VERSION}.sdk ]]; then
- echo "As of Dec 2020, Firefox does not build on Mac ${CURRENT_HOST_OS_VERSION} 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 ${MACOS_SDK_VERSION} SDK path"
- echo "ac_add_options --with-macos-sdk=$HOME/SDK-archive/MacOSX${MACOS_SDK_VERSION}.sdk/" >> .mozconfig
- fi
- fi
echo "-- building on Mac"
elif [[ "$(uname)" == "Linux" ]]; then
echo "-- building on Linux"