Skip to content

Commit

Permalink
fix: fix the failure of compile
Browse files Browse the repository at this point in the history
  • Loading branch information
Maroon502 committed Oct 27, 2023
1 parent aed26a8 commit 8b0b6e3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ fn bindgen_lib() {
let mut header_path = String::new();

for i in &include {
if PathBuf::from(i).join(HEADER).exists() {
header_path = i.to_string() +"\\" + HEADER;
let path = PathBuf::from(i).join(HEADER);
if path.exists() {
header_path = path.display().to_string();
break;
}
}
Expand All @@ -30,7 +31,7 @@ fn bindgen_lib() {
.collect::<Vec<String>>();

let bindings = bindgen::Builder::default()
.header(&header_path)
.header(header_path)
.clang_args(clang_args.iter())
.trust_clang_mangling(false)
.generate()
Expand Down

0 comments on commit 8b0b6e3

Please sign in to comment.