Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

[evm][move package] make --arch ethereum present in all builds, but return an error if feature evm-backend isn't enabled #106

Merged
merged 1 commit into from
May 5, 2022

Conversation

vgao1996
Copy link
Member

@vgao1996 vgao1996 commented May 5, 2022

Previously, the --arch ethereum option is only present when feature evm-backend is enabled, which ended up causing some confusion. This PR makes the option always available, but return an error if evm-backend isn't enabled when invoked.

… return an error if feature `evm-backend` isn't enabled
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`.");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@vgao1996 vgao1996 merged commit f3b6112 into move-language:main May 5, 2022
brson added a commit to brson/move that referenced this pull request Apr 27, 2023
brson added a commit to brson/move that referenced this pull request Jul 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants