Skip to content

Commit

Permalink
wasmer-cli: refuse to build if not at least one compiler is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jcaesar committed Feb 22, 2021
1 parent 5b2fa1a commit 8041f03
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/cli/src/bin/wasmer.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
use wasmer_cli::cli::wasmer_main;

#[cfg(not(any(feature = "cranelift", feature = "singlepass", feature = "llvm")))]
compile_error!(
"Either enable at least one compiler, or compile the wasmer-headless binary instead"
);

fn main() {
wasmer_main();
}

0 comments on commit 8041f03

Please sign in to comment.