From 2edf326b958e2f02b3587ead2da36682072b12a9 Mon Sep 17 00:00:00 2001 From: WillyJL <49810075+Willy-JL@users.noreply.github.com> Date: Tue, 16 Jul 2024 01:43:16 +0100 Subject: [PATCH 1/2] Disable WASM sign extension ops for iOS 14 Safari --- stremio-core-web/Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stremio-core-web/Cargo.toml b/stremio-core-web/Cargo.toml index bb506aa5a..b34b6768c 100644 --- a/stremio-core-web/Cargo.toml +++ b/stremio-core-web/Cargo.toml @@ -55,3 +55,7 @@ tracing-wasm = "0.2" [dev-dependencies] wasm-bindgen-test = "0.3.0" + +# iOS 14 Safari does not support WASM sign extension operations +[package.metadata.wasm-pack.profile.release] +wasm-opt = ["--signext-lowering"] From 652c03bf5a68f0d7eb661db50b71e37e63b38c76 Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Sat, 27 Jul 2024 02:48:57 +0200 Subject: [PATCH 2/2] Update comments for different iOS versions Co-authored-by: elpiel --- stremio-core-web/Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stremio-core-web/Cargo.toml b/stremio-core-web/Cargo.toml index b34b6768c..8509583c5 100644 --- a/stremio-core-web/Cargo.toml +++ b/stremio-core-web/Cargo.toml @@ -56,6 +56,8 @@ tracing-wasm = "0.2" [dev-dependencies] wasm-bindgen-test = "0.3.0" -# iOS 14 Safari does not support WASM sign extension operations [package.metadata.wasm-pack.profile.release] +# iOS 12 Safari - unsupported, flag is insufficient for this version to work and out-of-scope for now +# iOS 14 Safari - unsupported, we need to use `--signext-lowering` +# iOS 15 Safari - supported without this flag, current version is tested and works wasm-opt = ["--signext-lowering"]