Add a CLI option for module linking (#2524)
* Add a CLI option for module linking Forgot to add this earlier! * Always apt-get update before install
This commit is contained in:
@@ -127,6 +127,10 @@ struct CommonOptions {
|
||||
#[structopt(long)]
|
||||
enable_multi_memory: bool,
|
||||
|
||||
/// Enable support for the module-linking proposal
|
||||
#[structopt(long)]
|
||||
enable_module_linking: bool,
|
||||
|
||||
/// Enable all experimental Wasm features
|
||||
#[structopt(long)]
|
||||
enable_all: bool,
|
||||
@@ -198,6 +202,7 @@ impl CommonOptions {
|
||||
.wasm_multi_value(self.enable_multi_value.unwrap_or(true) || self.enable_all)
|
||||
.wasm_threads(self.enable_threads || self.enable_all)
|
||||
.wasm_multi_memory(self.enable_multi_memory || self.enable_all)
|
||||
.wasm_module_linking(self.enable_module_linking || self.enable_all)
|
||||
.cranelift_opt_level(self.opt_level())
|
||||
.strategy(pick_compilation_strategy(self.cranelift, self.lightbeam)?)?
|
||||
.profiler(pick_profiling_strategy(self.jitdump, self.vtune)?)?
|
||||
|
||||
Reference in New Issue
Block a user