We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4576002 + fe410cd commit 1b1cfdbCopy full SHA for 1b1cfdb
1 file changed
libcryptsetup-rs-sys/build.rs
@@ -8,6 +8,7 @@ use std::path::PathBuf;
8
fn probe() -> Library {
9
match Config::new()
10
.atleast_version("2.2.0")
11
+ .cargo_metadata(false)
12
.probe("libcryptsetup")
13
{
14
Ok(l) => l,
@@ -23,11 +24,12 @@ fn build_safe_free() {
23
24
25
fn generate_bindings(library: &Library, safe_free_is_needed: bool) {
26
let builder = bindgen::Builder::default()
- .clang_args(library.include_paths.iter().map(|path| {
27
- let r = format!("-I{}", path.to_string_lossy());
28
- eprintln!("{}", r);
29
- r
30
- }))
+ .clang_args(
+ library
+ .include_paths
+ .iter()
31
+ .map(|path| format!("-I{}", path.display())),
32
+ )
33
.header("header.h")
34
.size_t_is_usize(true);
35
#[cfg(target_arch = "x86")]
0 commit comments