Skip to content

Commit

Permalink
Try #1033:
Browse files Browse the repository at this point in the history
  • Loading branch information
bors[bot] authored Dec 2, 2019
2 parents 652433e + 390d435 commit 7c50014
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ serde = { version = "1", features = ["derive"] } # used by the plugin example
typetag = "0.1" # used by the plugin example

[features]
default = ["fast-tests", "wasi"]
default = ["fast-tests", "wasi", "backend-cranelift"]
"loader-kernel" = ["wasmer-kernel-loader"]
debug = ["wasmer-runtime-core/debug"]
trace = ["wasmer-runtime-core/trace"]
Expand Down
5 changes: 4 additions & 1 deletion src/bin/wasmer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ use wasmer_runtime_core::{
#[cfg(feature = "wasi")]
use wasmer_wasi;

#[cfg(all(not(feature = "backend-cranelift"), not(feature = "backend-llvm"), not(feature = "backend-singlepass")))]
compile_error!("Please enable at least one of the compiler backends");

#[derive(Debug, StructOpt)]
#[structopt(name = "wasmer", about = "Wasm execution runtime.", author)]
/// The options for the wasmer Command Line Interface
Expand Down Expand Up @@ -560,7 +563,7 @@ fn execute_wasm(options: &Run) -> Result<(), String> {

let compiler: Box<dyn Compiler> = match get_compiler_by_backend(options.backend, options) {
Some(x) => x,
None => return Err("the requested backend is not enabled".into()),
None => return Err(format!("the requested backend, \"{}\", is not enabled", options.backend.to_string())),
};

#[cfg(feature = "backend-llvm")]
Expand Down

0 comments on commit 7c50014

Please sign in to comment.