mirror of
https://github.com/EasyTier/kcp-sys.git
synced 2025-05-19 10:31:09 +00:00
avoid empty header paths
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user