Skip to content

Commit

Permalink
Use target path to represent sources package paths
Browse files Browse the repository at this point in the history
Bug: #28
  • Loading branch information
ksolana committed May 2, 2024
1 parent 855fd31 commit c6cf28a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions external-crates/move/solana/move-mv-llvm-compiler/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ 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 move_symbol_pool::Symbol as SymbolPool;
use package::build_dependency;
use std::{fs, io::Write, path::Path};

Expand Down Expand Up @@ -84,8 +84,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: Some((SymbolPool::from(target_path_string.clone()), PackageConfig::default())), // TODO: is it better than `None`?
paths: vec![target_path_string],
named_address_map: named_address_map.clone(),
}];
Expand Down

0 comments on commit c6cf28a

Please sign in to comment.