Skip to content

Commit

Permalink
Merge pull request #1484 from kent-3/patch-1
Browse files Browse the repository at this point in the history
secret-contract-optimizer: only build libraries
  • Loading branch information
assafmo committed Aug 6, 2023
2 parents e4733ed + 8e89876 commit c03451e
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 c03451e

Please sign in to comment.