Skip to content

Commit f5095c1

Browse files
authored
Merge pull request #133 from wasmx/cli-translator
Mark repack/snip/dropnames as translator in CLI
2 parents 6f8ad11 + 21999e2 commit f5095c1

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

chisel/src/main.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,18 @@ fn execute_module(context: &ModuleContext, module: &mut Module) -> bool {
262262
Err("deployer: Invalid preset")
263263
}
264264
}
265-
"repack" => translate_module(module, &Repack::new()),
266-
"snip" => translate_module(module, &Snip::new()),
267-
"dropnames" => translate_module(module, &DropSection::NamesSection),
265+
"repack" => {
266+
is_translator = true;
267+
translate_module(module, &Repack::new())
268+
}
269+
"snip" => {
270+
is_translator = true;
271+
translate_module(module, &Snip::new())
272+
}
273+
"dropnames" => {
274+
is_translator = true;
275+
translate_module(module, &DropSection::NamesSection)
276+
}
268277
_ => Err("Module Not Found"),
269278
};
270279

0 commit comments

Comments
 (0)