Skip to content

Commit b8b04da

Browse files
committed
avoid empty header paths
1 parent a932f3e commit b8b04da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fn main() {
1919
println!("cargo:rerun-if-changed=wrapper.h");
2020

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

2424
let bindings = bindgen::Builder::default()
2525
.header("wrapper.h")

0 commit comments

Comments
 (0)