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

@@ -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,