wasmtime: Option to disable parallel compilation (#3169)
* Introduce parallel-compilation configuration switch * Plumb parallel_compilation config to compilation * Adjust obj.rs * Address review * Fix compilation fail in `cache` crate * Fix obj.rs Also remove the now unneeded feature in /Cargo.toml * fmt
This commit is contained in:
@@ -20,20 +20,6 @@
|
||||
)
|
||||
)]
|
||||
|
||||
#[cfg(feature = "parallel-compilation")]
|
||||
macro_rules! maybe_parallel {
|
||||
($e:ident.($serial:ident | $parallel:ident)) => {
|
||||
$e.$parallel()
|
||||
};
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "parallel-compilation"))]
|
||||
macro_rules! maybe_parallel {
|
||||
($e:ident.($serial:ident | $parallel:ident)) => {
|
||||
$e.$serial()
|
||||
};
|
||||
}
|
||||
|
||||
mod code_memory;
|
||||
mod compiler;
|
||||
mod instantiate;
|
||||
|
||||
Reference in New Issue
Block a user