Skip to content

Commit

Permalink
fix mpm package build (#4377)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkysg authored Jan 22, 2025
1 parent 82ffb10 commit 7eb0a77
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion vm/move-package-manager/src/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,14 @@ pub fn handle_package_commands(
[(STARCOIN_STDLIB_ADDR_NAME, STARCOIN_STDLIB_ADDR_VALUE)],
"",
),
PackageCommand::Build(c) => c.execute(move_args.package_path, move_args.build_config),
PackageCommand::Build(c) => {
let mut build_config = move_args.build_config.clone();
build_config
.compiler_config
.known_attributes
.clone_from(extended_checks::get_all_attribute_names());
c.execute(move_args.package_path, move_args.build_config)
}
PackageCommand::Errmap(c) => c.execute(move_args.package_path, move_args.build_config),
PackageCommand::Prove(c) => c.execute(move_args.package_path, move_args.build_config),
PackageCommand::Coverage(c) => c.execute(move_args.package_path, move_args.build_config),
Expand Down

0 comments on commit 7eb0a77

Please sign in to comment.