devops: fix Firefox build on Linux (#16022)

Prebuilt WASI sysroot is not availabe any more, so this patch
disables sandboxing via WASI for now in our builds.

I tried compiling WASI manually, but it didn't work out for me
for some reason.
This commit is contained in:
Andrey Lushnikov 2022-07-28 08:04:44 -07:00 committed by GitHub
parent 6482ff7a7f
commit 96574e49eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 8 deletions

View File

@ -89,10 +89,8 @@ if [[ -n "${IS_LINUX_ARM64}" ]]; then
echo "ac_add_options --target=aarch64-linux-gnu" >> .mozconfig
fi
if is_linux "debian" 11; then
# There's no pre-built wasi sysroot for Debian 11.
echo "ac_add_options --without-wasm-sandboxed-libraries" >> .mozconfig
fi
# There's no pre-built wasi sysroot on certain platforms.
echo "ac_add_options --without-wasm-sandboxed-libraries" >> .mozconfig
OBJ_FOLDER="obj-build-playwright"
echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/${OBJ_FOLDER}" >> .mozconfig
@ -143,6 +141,7 @@ if [[ -n "${IS_FULL}" ]]; then
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.

View File

@ -89,10 +89,8 @@ if [[ -n "${IS_LINUX_ARM64}" ]]; then
echo "ac_add_options --target=aarch64-linux-gnu" >> .mozconfig
fi
if is_linux "debian" 11; then
# There's no pre-built wasi sysroot for Debian 11.
echo "ac_add_options --without-wasm-sandboxed-libraries" >> .mozconfig
fi
# There's no pre-built wasi sysroot on certain platforms.
echo "ac_add_options --without-wasm-sandboxed-libraries" >> .mozconfig
OBJ_FOLDER="obj-build-playwright"
echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/${OBJ_FOLDER}" >> .mozconfig
@ -143,6 +141,7 @@ if [[ -n "${IS_FULL}" ]]; then
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.