Open aoyako opened 3 weeks ago
Recap:
wasm_builder.sh
now can take --profile
to use profile from wasm/Cargo.toml
when building wasms.wasm/Cargo.toml
has two profiles:
deploy
- optimized build, will also apply wasm-opt
in the end.test
- no additional optimizations, same as release
.test
profile for testing, otherwise deploy
is used as default.@BAStos525
Context
Resolves https://github.com/hyperledger-iroha/iroha/issues/5202
Problem
The current version of
iroha_wasm_builder
has a--release
flag set by default for its output. \ The input--optimize
flag can be set that will apply-O -Os
. Still, it cannot produce a build indebug
mode.Solution
Changes in
iroha_wasm_builder
This PR introduces a single flag
--release
that:--release -O -Os
to the build.Changes in
build_wasm.sh
Now,
build_wasm.sh
produces adebug
build by default. Flag--release
can be added to build in optimized mode.Checklist
CONTRIBUTING.md
.