Skip to content

Commit

Permalink
Add more diagnostics of autocxx autogenerated file
Browse files Browse the repository at this point in the history
  • Loading branch information
PLeVasseur committed Jul 3, 2024
1 parent 1d1f2db commit 5a5561f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vsomeip-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ fn main() -> miette::Result<()> {
.join("rs")
.join("autocxx-ffi-default-gen.rs");
println!("cargo:warning=# file_path : {}", file_path.display());

if !file_path.exists() {
panic!("Unable to find autocxx generated code to rewrite");
}

if let Ok(mut contents) = fs::read_to_string(&file_path) {
// Insert #[allow(unused_imports)] for specific lines
contents = contents.replace(
Expand Down

0 comments on commit 5a5561f

Please sign in to comment.