diff --git a/src/bin/wasmer.rs b/src/bin/wasmer.rs index 4b190893317..4ab0120451a 100644 --- a/src/bin/wasmer.rs +++ b/src/bin/wasmer.rs @@ -105,22 +105,13 @@ enum Backend { impl Backend { pub fn variants() -> &'static [&'static str] { - #[cfg(all(feature = "backend:singlepass", feature = "backend:llvm"))] - { - &["cranelift", "singlepass", "llvm"] - } - #[cfg(all(not(feature = "backend:singlepass"), feature = "backend:llvm"))] - { - &["cranelift", "llvm"] - } - #[cfg(all(feature = "backend:singlepass", not(feature = "backend:llvm")))] - { - &["cranelift", "singlepass"] - } - #[cfg(all(not(feature = "backend:singlepass"), not(feature = "backend:llvm")))] - { - &["cranelift"] - } + &[ + "cranelift", + #[cfg(feature = "backend:singlepass")] + "singlepass", + #[cfg(feature = "backend:llvm")] + "llvm", + ] } }