Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into support-rust-1.70-wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
assafmo committed Aug 6, 2023
2 parents 9fbc4ff + c03451e commit de39a8c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN apt update && apt install -y binaryen clang && rm -rf /var/lib/apt/lists/*
WORKDIR /contract

ENTRYPOINT ["/bin/bash", "-c", "\
RUSTFLAGS='-C link-arg=-s' cargo build --release --target wasm32-unknown-unknown --locked && \
RUSTFLAGS='-C link-arg=-s' cargo build --release --lib --target wasm32-unknown-unknown --locked && \
(mkdir -p ./optimized-wasm/ && rm -f ./optimized-wasm/* && cp ./target/wasm32-unknown-unknown/release/*.wasm ./optimized-wasm/) && \
for w in ./optimized-wasm/*.wasm; do \
wasm-opt -Oz $w -o $w ; \
Expand Down

0 comments on commit de39a8c

Please sign in to comment.