Skip to content

Commit

Permalink
ci: let the wasm-pack replacement script use --release
Browse files Browse the repository at this point in the history
  • Loading branch information
cormacrelf committed Dec 5, 2021
1 parent 5b2f0b3 commit 11bed26
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/wasm/scripts/npm-pkg-config.sh
Expand Up @@ -114,7 +114,11 @@ target() {
TARGET="bundler"
fi

local or_release=()
if [ "$DEBUG_OR_RELEASE" = "release" ]; then or_release=("--release"); fi

cargo build \
"${or_release[*]}" \
--target wasm32-unknown-unknown \
--features "$FEATURES$EXTRA_FEATURES" \
|| bail "cargo build"
Expand Down

0 comments on commit 11bed26

Please sign in to comment.