mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-09 00:00:04 +03:00
bch_bindgen: add liburcu paths by pkgconfig
Signed-off-by: xhe <xw897002528@gmail.com>
This commit is contained in:
parent
5e224596cf
commit
03122a5888
@ -19,6 +19,7 @@ fn main() {
|
|||||||
.expect("ENV Var 'CARGO_MANIFEST_DIR' Expected")
|
.expect("ENV Var 'CARGO_MANIFEST_DIR' Expected")
|
||||||
.into();
|
.into();
|
||||||
|
|
||||||
|
let urcu = pkg_config::probe_library("liburcu").expect("Failed to find urcu lib");
|
||||||
let bindings = bindgen::builder()
|
let bindings = bindgen::builder()
|
||||||
.header(
|
.header(
|
||||||
top_dir
|
top_dir
|
||||||
@ -27,6 +28,12 @@ fn main() {
|
|||||||
.display()
|
.display()
|
||||||
.to_string(),
|
.to_string(),
|
||||||
)
|
)
|
||||||
|
.clang_args(
|
||||||
|
urcu
|
||||||
|
.include_paths
|
||||||
|
.iter()
|
||||||
|
.map(|p| format!("-I{}", p.display())),
|
||||||
|
)
|
||||||
.clang_arg("-I..")
|
.clang_arg("-I..")
|
||||||
.clang_arg("-I../c_src")
|
.clang_arg("-I../c_src")
|
||||||
.clang_arg("-I../include")
|
.clang_arg("-I../include")
|
||||||
|
Loading…
Reference in New Issue
Block a user