Alejandro Alonso cda19e0d51
⬆️ Use Wasm EH and SjLj for render-wasm with Rust 1.99 (#12235)
Rust 1.91 links emscripten with JS exception handling, which cannot
mix with SUPPORT_LONGJMP=wasm. Bump the devenv to Rust 1.99 (native
Wasm EH) and align EMCC_CFLAGS / SKIA_BINARIES_URL with a Skia
-ljmp-wasm prebuild so +simd128 no longer hits invoke_*V TypeErrors.
2026-10-09 11:53:28 +02:00

36 lines
618 B
Bash
Executable File

#!/usr/bin/env bash
_SCRIPT_DIR=$(dirname $0);
pushd $_SCRIPT_DIR;
# Enable debugging if the script is run with --debug
if [[ "$1" == "--debug" ]]; then
set -x
fi
. ./_build_env frontend
ALLOWED_RULES="-D static_mut_refs"
# ./lint --fix
if [[ "$1" == "--fix" ]]; then
cargo clippy \
--fix --allow-dirty \
--target=wasm32-unknown-emscripten \
--all-targets \
-- -D warnings \
$ALLOWED_RULES
else
cargo clippy \
--target=wasm32-unknown-emscripten \
--all-targets \
-- -D warnings \
$ALLOWED_RULES
fi
RESULT=$?
popd
exit $RESULT