Skip to content

Commit b8686b0

Browse files
committed
build: Include LIBCLANG_PATH in the rustc search path if it exists.
1 parent 2034f77 commit b8686b0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.rs

+5
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,10 @@ mod codegen {
1515
}
1616

1717
fn main() {
18+
use std::env;
19+
1820
codegen::main();
21+
if let Ok(path) = env::var("LIBCLANG_PATH") {
22+
println!("cargo:rustc-link-search=native={}", path);
23+
}
1924
}

0 commit comments

Comments
 (0)