Skip to content

Commit 5d6223d

Browse files
Update cmd/soroban-cli/src/wasm.rs
Co-authored-by: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com>
1 parent d258b27 commit 5d6223d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cmd/soroban-cli/src/wasm.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ impl Args {
102102
use wasm_opt::{Feature, OptimizationOptions};
103103

104104
let mut options = OptimizationOptions::new_optimize_for_size_aggressively();
105+
options.converge = true;
105106

106107
// Explicitly set to MVP + sign-ext + mutable-globals, which happens to
107108
// also be the default featureset, but just to be extra clear we set it
@@ -110,10 +111,10 @@ impl Args {
110111
// Formerly Soroban supported only the MVP feature set, but Rust 1.70 as
111112
// well as Clang generate code with sign-ext + mutable-globals enabled,
112113
// so Soroban has taken a change to support them also.
113-
options.converge = true;
114114
options.mvp_features_only();
115115
options.enable_feature(Feature::MutableGlobals);
116116
options.enable_feature(Feature::SignExt);
117+
117118
options
118119
.run(&self.wasm, output)
119120
.map_err(Error::OptimizationError)

0 commit comments

Comments
 (0)