c-api: add wasm_config_parallel_compilation_set (#5298)

This commit is contained in:
Thibault Charbonnier
2022-11-29 15:03:05 -08:00
committed by GitHub
parent 86acb9a438
commit e7cb82af89
3 changed files with 18 additions and 2 deletions

View File

@@ -1275,9 +1275,11 @@ impl Config {
Ok(self)
}
/// Configure wether wasmtime should compile a module using multiple threads.
/// Configure wether wasmtime should compile a module using multiple
/// threads.
///
/// Disabling this will result in a single thread being used to compile the wasm bytecode.
/// Disabling this will result in a single thread being used to compile
/// the wasm bytecode.
///
/// By default parallel compilation is enabled.
#[cfg(feature = "parallel-compilation")]