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 3, 2024
1 parent 855fd31 commit e975c98
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 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,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};

Expand Down Expand Up @@ -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(),
}];
Expand Down

0 comments on commit e975c98

Please sign in to comment.