From 3d4aada4dd38757bcd45daf280674f8cbd30dce5 Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Mon, 6 Jun 2022 23:23:38 +0300 Subject: [PATCH] cli-compiler: fix non-compilation with default features Crate cannot be published on crates.io if the default compilation does not work. --- lib/cli-compiler/src/bin/wasmer_compiler.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/cli-compiler/src/bin/wasmer_compiler.rs b/lib/cli-compiler/src/bin/wasmer_compiler.rs index 372ee665e..ba0f2e10f 100644 --- a/lib/cli-compiler/src/bin/wasmer_compiler.rs +++ b/lib/cli-compiler/src/bin/wasmer_compiler.rs @@ -1,11 +1,6 @@ use wasmer_compiler_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" -); - -#[cfg(featue = "run")] +#[cfg(feature = "run")] compile_error!("Cannot enable run with the compile-only build"); fn main() {