mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 05:50:35 +00:00
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.
36 lines
618 B
Bash
Executable File
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
|