c-api: add wasm_config_parallel_compilation_set (#5298)
This commit is contained in:
committed by
GitHub
parent
86acb9a438
commit
e7cb82af89
@@ -200,6 +200,14 @@ WASMTIME_CONFIG_PROP(void, wasm_memory64, bool)
|
||||
*/
|
||||
WASMTIME_CONFIG_PROP(void, strategy, wasmtime_strategy_t)
|
||||
|
||||
/**
|
||||
* \brief Configure wether wasmtime should compile a module using multiple threads.
|
||||
*
|
||||
* For more information see the Rust documentation at
|
||||
* https://docs.wasmtime.dev/api/wasmtime/struct.Config.html#method.parallel_compilation.
|
||||
*/
|
||||
WASMTIME_CONFIG_PROP(void, parallel_compilation, bool)
|
||||
|
||||
/**
|
||||
* \brief Configures whether Cranelift's debug verifier is enabled.
|
||||
*
|
||||
|
||||
@@ -112,6 +112,12 @@ pub extern "C" fn wasmtime_config_strategy_set(
|
||||
});
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
#[cfg(feature = "parallel-compilation")]
|
||||
pub extern "C" fn wasmtime_config_parallel_compilation_set(c: &mut wasm_config_t, enable: bool) {
|
||||
c.config.parallel_compilation(enable);
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn wasmtime_config_cranelift_debug_verifier_set(
|
||||
c: &mut wasm_config_t,
|
||||
|
||||
Reference in New Issue
Block a user