Skip to content

Commit

Permalink
Update crates/aptos/src/move_tool/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Vineeth Kashyap <[email protected]>
  • Loading branch information
rahxephon89 and vineethk committed Jan 9, 2025
1 parent 90589b5 commit f3d0a4f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions crates/aptos/src/move_tool/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -923,12 +923,7 @@ impl IncludedArtifacts {
experiments.append(&mut move_options.experiments.clone());
experiments.append(&mut more_experiments);

if matches!(
move_options
.compiler_version
.or_else(|| Some(CompilerVersion::latest_stable())),
Some(CompilerVersion::V1)
) {
if matches!(compiler_version, Some(CompilerVersion::V1)) {
if !matches!(optimize, Option::None | Some(OptimizationLevel::Default)) {
return Err(CliError::CommandArgumentError(
"`--optimization-level`/`--optimize` flag is not compatible with Move Compiler V1"
Expand Down

0 comments on commit f3d0a4f

Please sign in to comment.