diff --git a/language/tools/move-cli/src/package/cli.rs b/language/tools/move-cli/src/package/cli.rs index 2bcc8e6a5a..bee9d480bd 100644 --- a/language/tools/move-cli/src/package/cli.rs +++ b/language/tools/move-cli/src/package/cli.rs @@ -304,9 +304,12 @@ pub fn handle_package_commands( config.compile_package(&rerooted_path, &mut std::io::stderr())?; } - #[cfg(feature = "evm-backend")] Architecture::Ethereum => { + #[cfg(feature = "evm-backend")] config.compile_package_evm(&rerooted_path, &mut std::io::stderr())?; + + #[cfg(not(feature = "evm-backend"))] + bail!("The Ethereum architecture is not supported because move-cli was not compiled with feature flag `evm-backend`."); } } } diff --git a/language/tools/move-package/src/lib.rs b/language/tools/move-package/src/lib.rs index 7143b49464..04e8c6863a 100644 --- a/language/tools/move-package/src/lib.rs +++ b/language/tools/move-package/src/lib.rs @@ -35,7 +35,6 @@ pub enum Architecture { AsyncMove, - #[cfg(feature = "evm-backend")] Ethereum, } @@ -46,7 +45,6 @@ impl fmt::Display for Architecture { Self::AsyncMove => write!(f, "async-move"), - #[cfg(feature = "evm-backend")] Self::Ethereum => write!(f, "ethereum"), } } @@ -68,7 +66,6 @@ impl Architecture { "async-move" => Self::AsyncMove, - #[cfg(feature = "evm-backend")] "ethereum" => Self::Ethereum, _ => {