mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
devops: fix FF build on MacOS (#16023)
It looks like FF on MacOS requires the `--enable-bootstrap` flag instead of the original dance with the master branch.
This commit is contained in:
parent
96574e49eb
commit
792aa6a080
@ -126,24 +126,28 @@ if [[ -z "${IS_JUGGLER}" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "${IS_FULL}" ]]; then
|
if [[ -n "${IS_FULL}" ]]; then
|
||||||
# This is a slow but sure way to get all the necessary toolchains.
|
if is_mac; then
|
||||||
# However, it will not work if tree is dirty.
|
echo "ac_add_options --enable-bootstrap" >> .mozconfig
|
||||||
# Bail out if git repo is dirty.
|
else
|
||||||
if [[ -n $(git status -s --untracked-files=no) ]]; then
|
# This is a slow but sure way to get all the necessary toolchains.
|
||||||
echo "ERROR: dirty GIT state - commit everything and re-run the script."
|
# However, it will not work if tree is dirty.
|
||||||
exit 1
|
# Bail out if git repo is dirty.
|
||||||
|
if [[ -n $(git status -s --untracked-files=no) ]]; then
|
||||||
|
echo "ERROR: dirty GIT state - commit everything and re-run the script."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# 1. We have a --single-branch checkout, so we have to add a "master" branch and fetch it
|
||||||
|
git remote set-branches --add browser_upstream master
|
||||||
|
git fetch browser_upstream master
|
||||||
|
# 2. Checkout the master branch and run bootstrap from it.
|
||||||
|
git checkout browser_upstream/master
|
||||||
|
SHELL=/bin/sh ./mach --no-interactive bootstrap --application-choice=browser
|
||||||
|
git checkout -
|
||||||
|
rm -rf "${OBJ_FOLDER}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 1. We have a --single-branch checkout, so we have to add a "master" branch and fetch it
|
if [[ -n "${WIN32_REDIST_DIR}" ]]; then
|
||||||
git remote set-branches --add browser_upstream master
|
|
||||||
git fetch browser_upstream master
|
|
||||||
# 2. Checkout the master branch and run bootstrap from it.
|
|
||||||
git checkout browser_upstream/master
|
|
||||||
SHELL=/bin/sh ./mach --no-interactive bootstrap --application-choice=browser
|
|
||||||
git checkout -
|
|
||||||
rm -rf "${OBJ_FOLDER}"
|
|
||||||
|
|
||||||
if [[ ! -z "${WIN32_REDIST_DIR}" ]]; then
|
|
||||||
# Having this option in .mozconfig kills incremental compilation.
|
# Having this option in .mozconfig kills incremental compilation.
|
||||||
echo "export WIN32_REDIST_DIR=\"$WIN32_REDIST_DIR\"" >> .mozconfig
|
echo "export WIN32_REDIST_DIR=\"$WIN32_REDIST_DIR\"" >> .mozconfig
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -126,24 +126,28 @@ if [[ -z "${IS_JUGGLER}" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "${IS_FULL}" ]]; then
|
if [[ -n "${IS_FULL}" ]]; then
|
||||||
# This is a slow but sure way to get all the necessary toolchains.
|
if is_mac; then
|
||||||
# However, it will not work if tree is dirty.
|
echo "ac_add_options --enable-bootstrap" >> .mozconfig
|
||||||
# Bail out if git repo is dirty.
|
else
|
||||||
if [[ -n $(git status -s --untracked-files=no) ]]; then
|
# This is a slow but sure way to get all the necessary toolchains.
|
||||||
echo "ERROR: dirty GIT state - commit everything and re-run the script."
|
# However, it will not work if tree is dirty.
|
||||||
exit 1
|
# Bail out if git repo is dirty.
|
||||||
|
if [[ -n $(git status -s --untracked-files=no) ]]; then
|
||||||
|
echo "ERROR: dirty GIT state - commit everything and re-run the script."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# 1. We have a --single-branch checkout, so we have to add a "master" branch and fetch it
|
||||||
|
git remote set-branches --add browser_upstream master
|
||||||
|
git fetch browser_upstream master
|
||||||
|
# 2. Checkout the master branch and run bootstrap from it.
|
||||||
|
git checkout browser_upstream/master
|
||||||
|
SHELL=/bin/sh ./mach --no-interactive bootstrap --application-choice=browser
|
||||||
|
git checkout -
|
||||||
|
rm -rf "${OBJ_FOLDER}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 1. We have a --single-branch checkout, so we have to add a "master" branch and fetch it
|
if [[ -n "${WIN32_REDIST_DIR}" ]]; then
|
||||||
git remote set-branches --add browser_upstream master
|
|
||||||
git fetch browser_upstream master
|
|
||||||
# 2. Checkout the master branch and run bootstrap from it.
|
|
||||||
git checkout browser_upstream/master
|
|
||||||
SHELL=/bin/sh ./mach --no-interactive bootstrap --application-choice=browser
|
|
||||||
git checkout -
|
|
||||||
rm -rf "${OBJ_FOLDER}"
|
|
||||||
|
|
||||||
if [[ ! -z "${WIN32_REDIST_DIR}" ]]; then
|
|
||||||
# Having this option in .mozconfig kills incremental compilation.
|
# Having this option in .mozconfig kills incremental compilation.
|
||||||
echo "export WIN32_REDIST_DIR=\"$WIN32_REDIST_DIR\"" >> .mozconfig
|
echo "export WIN32_REDIST_DIR=\"$WIN32_REDIST_DIR\"" >> .mozconfig
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user