Skip to content

Commit

Permalink
fix(wasm): Keep debug information in benchmark and debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh committed Dec 4, 2024
1 parent 1c44ac8 commit 5501f68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ build-wasm mode=default_mode:
just fetch-data
echo "Building to WASM target..."
cargo build --target wasm32-unknown-unknown {{ if mode == "release" {"--release"} else if mode == "benchmark" {"--profile benchmark"} else {""} }} --features wasm
wasm-bindgen ./target/wasm32-unknown-unknown/{{mode}}/csslsrs.wasm --out-dir ./packages/csslsrs/src/generated --target=experimental-nodejs-module
wasm-bindgen ./target/wasm32-unknown-unknown/{{mode}}/csslsrs.wasm --out-dir ./packages/csslsrs/src/generated --target=experimental-nodejs-module {{ if mode == "release" { "" } else { "--keep-debug" } }}
{{ if mode == "release" { "wasm-opt -O4 ./packages/csslsrs/src/generated/csslsrs_bg.wasm -o ./packages/csslsrs/src/generated/csslsrs_bg.wasm" } else { "" } }}
pnpm -C ./packages/csslsrs install
pnpm -C ./packages/csslsrs run build
Expand Down

0 comments on commit 5501f68

Please sign in to comment.