mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-06 12:48:20 +00:00
wasmer-cli: refuse to build if not at least one compiler is enabled
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user