Skip to content

Commit

Permalink
avoid empty header paths
Browse files Browse the repository at this point in the history
  • Loading branch information
KKRainbow committed Jan 26, 2025
1 parent a932f3e commit b8b04da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fn main() {
println!("cargo:rerun-if-changed=wrapper.h");

let extra_header_path = std::env::var("KCP_SYS_EXTRA_HEADER_PATH").unwrap_or_default();
let extra_header_paths = extra_header_path.split(":").collect::<Vec<_>>();
let extra_header_paths = extra_header_path.split(":").filter(|s| !s.is_empty()).collect::<Vec<_>>();

let bindings = bindgen::Builder::default()
.header("wrapper.h")
Expand Down

0 comments on commit b8b04da

Please sign in to comment.