Skip to content

Commit

Permalink
Fix llvm backend trying to use relative paths
Browse files Browse the repository at this point in the history
After jfecher#186 all module paths should be absolute, and as such it's not necessary to prefix them with ./
  • Loading branch information
ehllie committed Feb 8, 2024
1 parent 074d47f commit b115ed4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/llvm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ pub fn run(path: &Path, ast: hir::Ast, args: &Cli) {

// Run the program by default if --build was not passed
if !args.build {
let program_command = PathBuf::from("./".to_string() + &binary_name);
let program_command = PathBuf::from(&binary_name);
Command::new(program_command).spawn().unwrap().wait().unwrap();
}

Expand Down

0 comments on commit b115ed4

Please sign in to comment.