Skip to content

Commit

Permalink
Update a comment and a changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
d0iasm committed Nov 25, 2019
1 parent f79cbcd commit 5f2854c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## **[Unreleased]**

- [#1009](https://github.com/wasmerio/wasmer/pull/1009) Enable LLVM verifier for all tests, add new llvm-backend-tests crate.
- [#1004](https://github.com/wasmerio/wasmer/pull/1004) Add Auto backend to enable change backend usage depending on wasm file executed.

## 0.11.0 - 2019-11-22

Expand Down
2 changes: 1 addition & 1 deletion lib/runtime-core/src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl Backend {

impl Default for Backend {
fn default() -> Self {
Backend::Cranelift
Backend::Auto
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/bin/wasmer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -548,9 +548,9 @@ fn execute_wasm(options: &mut Run) -> Result<(), String> {
};

// Update backend when a backend flag is `auto` or a default value.
// Use a singlepass if it's enable and the file provided is larger
// than 10MiB (10485760 bytes), or it's enable and the target architecture
// is aarch64. Otherwise, use a cranelift as a backend.
// Use the Singlepass backend if it's enabled and the file provided is larger
// than 10MiB (10485760 bytes), or it's enabled and the target architecture
// is AArch64. Otherwise, use the Cranelift backend.
if options.backend == Backend::Auto {
if Backend::variants().contains(&Backend::Singlepass.to_string())
&& (wasm_binary.len() > 10485760 || cfg!(target_arch = "aarch64"))
Expand Down

0 comments on commit 5f2854c

Please sign in to comment.