Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
d0iasm committed Nov 22, 2019
1 parent 8d69c98 commit fadc573
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bin/wasmer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -492,9 +492,10 @@ fn execute_wasm(options: &mut Run) -> Result<(), String> {
None
};

// Update backend when a backend flag is `auto` or no specific value.
// 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). Otherwise, use a cranelift as a backend.
// than 10MiB (10485760 bytes), or it's enable and the target architecture
// is aarch64. Otherwise, use a cranelift as a 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 fadc573

Please sign in to comment.