Skip to content

Commit 3905d17

Browse files
build(web): pass extra optimization flags for WASM release build (#1342)
Co-authored-by: Alexandr Yusuk <aleksandr.yusuk@apriorit.com>
1 parent 7dd4db0 commit 3905d17

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

xtask/src/web.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ pub fn build(sh: &Shell, wasm_pack_dev: bool) -> anyhow::Result<()> {
5555
} else {
5656
let _env_guard = sh.push_env(
5757
"RUSTFLAGS",
58-
"-Ctarget-feature=+simd128,+bulk-memory --cfg getrandom_backend=\"wasm_js\"",
58+
"-Ctarget-feature=+simd128,+bulk-memory --cfg getrandom_backend=\"wasm_js\"
59+
-Copt-level=s -Ccodegen-units=1 -Cllvm-args=-enable-dfa-jump-thread",
5960
);
6061
run_cmd_in!(sh, IRONRDP_WEB_PATH, "wasm-pack build --target web")?;
6162
}

0 commit comments

Comments
 (0)