Skip to content

Commit

Permalink
use current directory in compile commands
Browse files Browse the repository at this point in the history
  • Loading branch information
aneksteind committed Nov 13, 2023
1 parent 3814547 commit 20d3cde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c2rust-transpile/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ pub fn create_temp_compile_commands(sources: &[PathBuf]) -> PathBuf {
.unwrap_or_else(|_| panic!("Could not canonicalize {}", source_file.display()));

CompileCmd {
directory: absolute_path.parent().unwrap().to_path_buf(),
directory: PathBuf::from("."),
file: absolute_path.clone(),
arguments: vec![
"clang".to_string(),
Expand Down

0 comments on commit 20d3cde

Please sign in to comment.