fix(wasmtime):Config methods should be idempotent (#4252)
This commit refactored `Config` to use a seperate `CompilerConfig` field instead of operating on `CompilerBuilder` directly to make all its methods idempotent. Fixes #4189
This commit is contained in:
@@ -12,7 +12,7 @@ fn create_engine() -> Engine {
|
||||
// the generated code at all; it only does extra checking after
|
||||
// compilation.
|
||||
unsafe {
|
||||
config.cranelift_flag_enable("regalloc_checker").unwrap();
|
||||
config.cranelift_flag_enable("regalloc_checker");
|
||||
}
|
||||
Engine::new(&config).expect("Could not construct Engine")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user