diff --git a/CHANGELOG.md b/CHANGELOG.md index c65439f0d22..3921ac8b47d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ All PRs to the Wasmer repository must add to this file. Blocks of changes will separated by version increments. ## **[Unreleased]** +- [#382](https://github.com/wasmerio/wasmer/pull/382) Improve error message on `--backend` flag to only suggest currently enabled backends - [#381](https://github.com/wasmerio/wasmer/pull/381) Allow retrieving propagated user errors. - [#379](https://github.com/wasmerio/wasmer/pull/379) Fix small return types from imported functions. - [#371](https://github.com/wasmerio/wasmer/pull/371) Add more Debug impl for WASI types diff --git a/src/bin/wasmer.rs b/src/bin/wasmer.rs index b9606a225a7..4ab0120451a 100644 --- a/src/bin/wasmer.rs +++ b/src/bin/wasmer.rs @@ -105,7 +105,13 @@ enum Backend { impl Backend { pub fn variants() -> &'static [&'static str] { - &["singlepass", "cranelift", "llvm"] + &[ + "cranelift", + #[cfg(feature = "backend:singlepass")] + "singlepass", + #[cfg(feature = "backend:llvm")] + "llvm", + ] } }