From e975c985c5fe6ff1f2fa2a8927529cc5b0362696 Mon Sep 17 00:00:00 2001 From: ksolana <110843012+ksolana@users.noreply.github.com> Date: Thu, 2 May 2024 06:25:56 -0700 Subject: [PATCH] Use target path to represent sources package paths Bug: #28 --- .../move/solana/move-mv-llvm-compiler/src/main.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/external-crates/move/solana/move-mv-llvm-compiler/src/main.rs b/external-crates/move/solana/move-mv-llvm-compiler/src/main.rs index 60a34e827bdb06..82e07d68740d2c 100644 --- a/external-crates/move/solana/move-mv-llvm-compiler/src/main.rs +++ b/external-crates/move/solana/move-mv-llvm-compiler/src/main.rs @@ -21,14 +21,13 @@ use move_bytecode_source_map::{mapping::SourceMapping, utils::source_map_from_fi use move_command_line_common::files::{ MOVE_COMPILED_EXTENSION, MOVE_EXTENSION, SOURCE_MAP_EXTENSION, }; -use move_compiler::{shared::PackagePaths, Flags}; +use move_compiler::{shared::{PackageConfig, PackagePaths}, Flags}; use move_ir_types::location::Spanned; use move_model::{ model::GlobalEnv, options::ModelBuilderOptions, run_model_builder_with_options_and_compilation_flags, }; -// todo sui -//use move_symbol_pool::Symbol as SymbolPool; + use package::build_dependency; use std::{fs, io::Write, path::Path}; @@ -84,8 +83,7 @@ fn main() -> anyhow::Result<()> { } let sources = vec![PackagePaths { - name: None, // todo sui - //name: Some(SymbolPool::from(target_path_string.clone())), // TODO: is it better than `None`? + name: None, paths: vec![target_path_string], named_address_map: named_address_map.clone(), }];