Bug 1769239 - Upload js.wasm binary for SM(wasi) tasks. r=sfink

Also add --disable-debug-symbols to shrink this from 140+ MB to about 8.5 MB.

Differential Revision: https://phabricator.services.mozilla.com/D146296
This commit is contained in:
Jan de Mooij 2022-05-16 13:25:29 +00:00
Родитель 53f2f7607e
Коммит 2a0da62d4d
2 изменённых файлов: 10 добавлений и 1 удалений

Просмотреть файл

@ -650,6 +650,15 @@ if args.variant == "msan":
command += files
subprocess.call(command)
# Upload dist/bin/js as js.wasm for the WASI build.
if args.variant == "wasi":
command = [
"cp",
os.path.join(OBJDIR, "dist/bin/js"),
os.path.join(env["MOZ_UPLOAD_DIR"], "js.wasm"),
]
subprocess.call(command)
# Generate stacks from minidumps.
if use_minidump:
venv_python = os.path.join(OBJDIR, "_virtualenvs", "build", "bin", "python3")

Просмотреть файл

@ -1,5 +1,5 @@
{
"configure-args": "--enable-application=js --target=wasm32-unknown-wasi --disable-stdcxx-compat --without-system-zlib --without-intl-api --disable-jit --disable-shared-js --disable-shared-memory --disable-tests --disable-cranelift --disable-clang-plugin",
"configure-args": "--enable-application=js --target=wasm32-unknown-wasi --disable-stdcxx-compat --without-system-zlib --without-intl-api --disable-jit --disable-shared-js --disable-shared-memory --disable-tests --disable-cranelift --disable-clang-plugin --disable-debug-symbols",
"optimize": true,
"debug": false,
"nspr": false,