devops(ff-beta): fix rust installation while building firefox (#8049)
This commit is contained in:
parent
a515a2538e
commit
477ef552fb
|
|
@ -82,23 +82,7 @@ OBJ_FOLDER="obj-build-playwright"
|
||||||
echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/${OBJ_FOLDER}" >> .mozconfig
|
echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/${OBJ_FOLDER}" >> .mozconfig
|
||||||
echo "ac_add_options --disable-crashreporter" >> .mozconfig
|
echo "ac_add_options --disable-crashreporter" >> .mozconfig
|
||||||
|
|
||||||
if [[ $1 == "--full" || $2 == "--full" ]]; then
|
if [[ $1 != "--juggler" ]]; then
|
||||||
if [[ "$(uname)" == "Darwin" || "$(uname)" == "Linux" ]]; then
|
|
||||||
SHELL=/bin/sh ./mach --no-interactive bootstrap --application-choice=browser
|
|
||||||
fi
|
|
||||||
if [[ ! -z "${WIN32_REDIST_DIR}" ]]; then
|
|
||||||
# Having this option in .mozconfig kills incremental compilation.
|
|
||||||
echo "export WIN32_REDIST_DIR=\"$WIN32_REDIST_DIR\"" >> .mozconfig
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! [[ -f "$HOME/.mozbuild/_virtualenvs/mach/bin/python" ]]; then
|
|
||||||
./mach create-mach-environment
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $1 == "--juggler" ]]; then
|
|
||||||
./mach build faster
|
|
||||||
else
|
|
||||||
# TODO: rustup is not in the PATH on Windows
|
# TODO: rustup is not in the PATH on Windows
|
||||||
if command -v rustup >/dev/null; then
|
if command -v rustup >/dev/null; then
|
||||||
# We manage Rust version ourselves.
|
# We manage Rust version ourselves.
|
||||||
|
|
@ -115,6 +99,24 @@ else
|
||||||
./mach build
|
./mach build
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $1 == "--full" || $2 == "--full" ]]; then
|
||||||
|
if [[ "$(uname)" == "Darwin" || "$(uname)" == "Linux" ]]; then
|
||||||
|
SHELL=/bin/sh ./mach --no-interactive bootstrap --application-choice=browser
|
||||||
|
fi
|
||||||
|
if [[ ! -z "${WIN32_REDIST_DIR}" ]]; then
|
||||||
|
# Having this option in .mozconfig kills incremental compilation.
|
||||||
|
echo "export WIN32_REDIST_DIR=\"$WIN32_REDIST_DIR\"" >> .mozconfig
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! [[ -f "$HOME/.mozbuild/_virtualenvs/mach/bin/python" ]]; then
|
||||||
|
./mach create-mach-environment
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $1 == "--juggler" ]]; then
|
||||||
|
./mach build faster
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "$(uname)" == "Darwin" ]]; then
|
if [[ "$(uname)" == "Darwin" ]]; then
|
||||||
node "${SCRIPT_FOLDER}"/install-preferences.js $PWD/${OBJ_FOLDER}/dist
|
node "${SCRIPT_FOLDER}"/install-preferences.js $PWD/${OBJ_FOLDER}/dist
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -82,23 +82,7 @@ OBJ_FOLDER="obj-build-playwright"
|
||||||
echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/${OBJ_FOLDER}" >> .mozconfig
|
echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/${OBJ_FOLDER}" >> .mozconfig
|
||||||
echo "ac_add_options --disable-crashreporter" >> .mozconfig
|
echo "ac_add_options --disable-crashreporter" >> .mozconfig
|
||||||
|
|
||||||
if [[ $1 == "--full" || $2 == "--full" ]]; then
|
if [[ $1 != "--juggler" ]]; then
|
||||||
if [[ "$(uname)" == "Darwin" || "$(uname)" == "Linux" ]]; then
|
|
||||||
SHELL=/bin/sh ./mach --no-interactive bootstrap --application-choice=browser
|
|
||||||
fi
|
|
||||||
if [[ ! -z "${WIN32_REDIST_DIR}" ]]; then
|
|
||||||
# Having this option in .mozconfig kills incremental compilation.
|
|
||||||
echo "export WIN32_REDIST_DIR=\"$WIN32_REDIST_DIR\"" >> .mozconfig
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! [[ -f "$HOME/.mozbuild/_virtualenvs/mach/bin/python" ]]; then
|
|
||||||
./mach create-mach-environment
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $1 == "--juggler" ]]; then
|
|
||||||
./mach build faster
|
|
||||||
else
|
|
||||||
# TODO: rustup is not in the PATH on Windows
|
# TODO: rustup is not in the PATH on Windows
|
||||||
if command -v rustup >/dev/null; then
|
if command -v rustup >/dev/null; then
|
||||||
# We manage Rust version ourselves.
|
# We manage Rust version ourselves.
|
||||||
|
|
@ -115,6 +99,24 @@ else
|
||||||
./mach build
|
./mach build
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $1 == "--full" || $2 == "--full" ]]; then
|
||||||
|
if [[ "$(uname)" == "Darwin" || "$(uname)" == "Linux" ]]; then
|
||||||
|
SHELL=/bin/sh ./mach --no-interactive bootstrap --application-choice=browser
|
||||||
|
fi
|
||||||
|
if [[ ! -z "${WIN32_REDIST_DIR}" ]]; then
|
||||||
|
# Having this option in .mozconfig kills incremental compilation.
|
||||||
|
echo "export WIN32_REDIST_DIR=\"$WIN32_REDIST_DIR\"" >> .mozconfig
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! [[ -f "$HOME/.mozbuild/_virtualenvs/mach/bin/python" ]]; then
|
||||||
|
./mach create-mach-environment
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $1 == "--juggler" ]]; then
|
||||||
|
./mach build faster
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "$(uname)" == "Darwin" ]]; then
|
if [[ "$(uname)" == "Darwin" ]]; then
|
||||||
node "${SCRIPT_FOLDER}"/install-preferences.js $PWD/${OBJ_FOLDER}/dist
|
node "${SCRIPT_FOLDER}"/install-preferences.js $PWD/${OBJ_FOLDER}/dist
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue