Add --disable-parallel-compilation CLI flag (#4911)
This commit is contained in:
@@ -22,6 +22,7 @@ default = [
|
||||
"wasmtime/cranelift",
|
||||
"wasmtime/jitdump",
|
||||
"wasmtime/vtune",
|
||||
"wasmtime/parallel-compilation",
|
||||
]
|
||||
pooling-allocator = []
|
||||
memory-init-cow = []
|
||||
|
||||
@@ -124,6 +124,10 @@ pub struct CommonOptions {
|
||||
#[clap(long)]
|
||||
pub disable_cache: bool,
|
||||
|
||||
/// Disable parallel compilation
|
||||
#[clap(long)]
|
||||
pub disable_parallel_compilation: bool,
|
||||
|
||||
/// Enables or disables WebAssembly features
|
||||
#[clap(long, value_name = "FEATURE,FEATURE,...", parse(try_from_str = parse_wasm_features))]
|
||||
pub wasm_features: Option<WasmFeatures>,
|
||||
@@ -292,6 +296,10 @@ impl CommonOptions {
|
||||
}
|
||||
}
|
||||
|
||||
if self.disable_parallel_compilation {
|
||||
config.parallel_compilation(false);
|
||||
}
|
||||
|
||||
if let Some(max) = self.static_memory_maximum_size {
|
||||
config.static_memory_maximum_size(max);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user