Skip to content

Commit

Permalink
Small fixes (move-language#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcivlin authored Aug 24, 2023
1 parent 257883d commit 90b3a3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions language/tools/move-mv-llvm-compiler/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ fn main() -> anyhow::Result<()> {
// If '-c' option is set, then -o is the directory to output the compiled modules,
// each module 'mod' will get file name 'mod.ll'
if compilation {
if output_file_path.ends_with('/') {
output_file_path.pop();
}
let mut out_path = Path::new(&output_file_path).to_path_buf().join(modname);
out_path.set_extension(&args.output_file_extension);
output_file = out_path.to_str().unwrap().to_string();
Expand Down
2 changes: 2 additions & 0 deletions language/tools/move-mv-llvm-compiler/tests/cli-tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ fn run_test_inner(test_path: &Path) -> anyhow::Result<()> {
let dst = &src.join("relative_path_results");
tc::store_results(src, dst)?;

tc::clean_results(src)?;

/////////////////////
// test absolute path
tc::run_move_to_llvm_build(
Expand Down

0 comments on commit 90b3a3d

Please sign in to comment.