From 8041f03bc4f11bb9f98f20205f3e42743b1b77ca Mon Sep 17 00:00:00 2001 From: Julius Michaelis Date: Mon, 22 Feb 2021 13:24:09 +0900 Subject: [PATCH] wasmer-cli: refuse to build if not at least one compiler is enabled --- lib/cli/src/bin/wasmer.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/cli/src/bin/wasmer.rs b/lib/cli/src/bin/wasmer.rs index ccd9aa9bf80..8f781e1f8cd 100644 --- a/lib/cli/src/bin/wasmer.rs +++ b/lib/cli/src/bin/wasmer.rs @@ -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(); }