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:
11
RELEASES.md
11
RELEASES.md
@@ -8,6 +8,17 @@ Unreleased.
|
||||
|
||||
### Changed
|
||||
|
||||
* The `Config::strategy`, `Config::cranelift_flag_enable`, `Config::cranelift_flag_set`
|
||||
and `Config::profiler` APIs now return `&mut Self` instead of `Result<&mut Self>`
|
||||
since the validation is deferred until `Engine::new`.
|
||||
[#4252](https://github.com/bytecodealliance/wasmtime/pull/4252)
|
||||
|
||||
### Fixed
|
||||
|
||||
* A refactor of `Config` was made to fix an issue that the order of calls to `Config`
|
||||
matters now, which may lead to unexpected behavior.
|
||||
[#4252](https://github.com/bytecodealliance/wasmtime/pull/4252)
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
## 0.38.0
|
||||
|
||||
Reference in New Issue
Block a user