Skip to content

Commit

Permalink
fix: Fix wasm-opt to prevent error
Browse files Browse the repository at this point in the history
  • Loading branch information
ltfschoen committed Dec 15, 2024
1 parent 4120a3c commit d13af64
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/secret-contracts/my-counter-contract/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ _build-mainnet-reproducible:
compress-wasm:
cp ./target/wasm32-unknown-unknown/release/*.wasm ./contract.wasm
@## The following line is not necessary, may work only on linux (extra size optimization)
@# wasm-opt -Os ./contract.wasm -o ./contract.wasm
@# wasm-opt -Os ./contract.wasm -o ./contract.wasm --enable-threads --enable-bulk-memory --all-features
cat ./contract.wasm | gzip -9 > ./contract.wasm.gz

.PHONY: schema
Expand Down
2 changes: 1 addition & 1 deletion packages/secret-contracts/nunya-contract/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ _build-mainnet-reproducible:
compress-wasm:
cp ./target/wasm32-unknown-unknown/release/*.wasm ./contract.wasm
@## The following line is not necessary, may work only on linux (extra size optimization)
@# wasm-opt -Os ./contract.wasm -o ./contract.wasm
@# wasm-opt -Os ./contract.wasm -o ./contract.wasm --enable-threads --enable-bulk-memory --all-features
cat ./contract.wasm | gzip -9 > ./contract.wasm.gz

.PHONY: schema
Expand Down
2 changes: 1 addition & 1 deletion packages/secret-contracts/secret-gateway/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ build-mainnet-reproducible:
compress-wasm:
cp ./target/wasm32-unknown-unknown/release/*.wasm ./secret-gateway-contract.wasm
@## The following line is not necessary, may work only on linux (extra size optimization)
wasm-opt -Os ./secret-gateway-contract.wasm -o ./secret-gateway-contract.wasm
wasm-opt -Os ./secret-gateway-contract.wasm -o ./secret-gateway-contract.wasm --enable-threads --enable-bulk-memory --all-features
cat ./secret-gateway-contract.wasm | gzip -9 > ./secret-gateway-contract.wasm.gz

.PHONY: schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ build-mainnet-reproducible:
compress-wasm:
cp ./target/wasm32-unknown-unknown/release/*.wasm ./contract.wasm
@## The following line is not necessary, may work only on linux (extra size optimization)
wasm-opt -Os ./contract.wasm -o ./contract.wasm
wasm-opt -Os ./contract.wasm -o ./contract.wasm --enable-threads --enable-bulk-memory --all-features
cat ./contract.wasm | gzip -9 > ./contract.wasm.gz

.PHONY: schema
Expand Down

0 comments on commit d13af64

Please sign in to comment.