diff --git a/Cargo.toml b/Cargo.toml index 88bb905..3ae0045 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 192c6cc..5673d28 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_DEBUG") @@ -11,8 +10,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"); @@ -27,7 +25,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)