wasmer-cli: refuse to build if not at least one compiler is enabled

This commit is contained in:
Julius Michaelis
2021-02-22 13:24:09 +09:00
parent 5b2fa1a8fc
commit 8041f03bc4

View File

@@ -1,5 +1,10 @@
use wasmer_cli::cli::wasmer_main; 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() { fn main() {
wasmer_main(); wasmer_main();
} }