mirror of
https://github.com/fluencelabs/wasm-utils
synced 2025-04-30 17:22:20 +00:00
Add no-constructor params
This commit is contained in:
parent
abb5ae6f22
commit
df329a086c
@ -111,6 +111,9 @@ fn do_main() -> Result<(), Error> {
|
|||||||
.help("Preserves specific imports in the library")
|
.help("Preserves specific imports in the library")
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
.long("public-api"))
|
.long("public-api"))
|
||||||
|
.arg(Arg::with_name("no_constructor")
|
||||||
|
.help("Do not wrap with constructor but only save an optimized module")
|
||||||
|
.long("no-constructor"))
|
||||||
|
|
||||||
.get_matches();
|
.get_matches();
|
||||||
|
|
||||||
@ -160,7 +163,7 @@ fn do_main() -> Result<(), Error> {
|
|||||||
|
|
||||||
let (module, ctor_module) = build(
|
let (module, ctor_module) = build(
|
||||||
module,
|
module,
|
||||||
true,
|
!matches.is_present("no_constructor"),
|
||||||
source_input.target(),
|
source_input.target(),
|
||||||
runtime_type_version,
|
runtime_type_version,
|
||||||
&public_api_entries,
|
&public_api_entries,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user