Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit 0f73ac1

Browse files
committed
Add back LIBCLANG_PATH env var for CI
Signed-off-by: David Sheets <sheets@alum.mit.edu>
1 parent f8ba55d commit 0f73ac1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libzfs-sys/build.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ use std::process::{Command, Stdio};
1313
fn main() {
1414
let out_file = env::current_dir().unwrap().join("src").join("bindings.rs");
1515

16+
// necessary for CI machines to find their libclang install
17+
env::set_var("LIBCLANG_PATH", "/opt/llvm-5.0.0/lib64");
18+
1619
let bindings = bindgen::Builder::default()
1720
.header("wrapper.h")
1821
.constified_enum_module("boolean_t")
@@ -112,7 +115,7 @@ fn main() {
112115
bindings.clang_arg(flag)
113116
})
114117
// include directory for zfsonlinux/zfs master branch
115-
.clang_arg("-I/usr/src/zfs-0.7.0/include/")
118+
.clang_arg("-I/usr/src/zfs-0.7.0/include")
116119
};
117120

118121
let bindings = bindings.generate().expect("Unable to generate bindings");

0 commit comments

Comments
 (0)