diff --git a/Cargo.toml b/Cargo.toml index 981a91e..d8eef0e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ repository = "https://github.com/nickray/littlefs2-sys" cty = "0.2.1" [build-dependencies] -bindgen = { version = "0.56.0", default-features = false , features = ["runtime"] } +bindgen = { version = "0.66.1", default-features = false , features = ["runtime"] } cc = "1" [features] diff --git a/build.rs b/build.rs index bf2bc7c..bc2f44d 100644 --- a/build.rs +++ b/build.rs @@ -3,7 +3,6 @@ use std::path::PathBuf; fn main() -> Result<(), Box> { let mut builder = cc::Build::new(); - let target = env::var("TARGET")?; let builder = builder .flag("-std=c11") .flag("-DLFS_NO_MALLOC") @@ -12,8 +11,7 @@ fn main() -> Result<(), Box> { .flag("-DLFS_NO_ERROR") .file("littlefs/lfs.c") .file("littlefs/lfs_util.c") - .file("string.c") - ; + .file("string.c"); #[cfg(not(feature = "assertions"))] let builder = builder.flag("-DLFS_NO_ASSERT"); @@ -25,7 +23,6 @@ fn main() -> Result<(), Box> { let bindings = bindgen::Builder::default() .header("littlefs/lfs.h") - .clang_arg(format!("--target={}", target)) .use_core() .ctypes_prefix("cty") .rustfmt_bindings(true)