don't set clang target as its already handled in bindgen by default

This commit is contained in:
liebman
2024-09-18 12:13:23 +02:00
committed by Robin Krahl
parent cd3a80d8d9
commit aa64d080e8
2 changed files with 4 additions and 2 deletions
+4
View File
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixed
- Fix build script for platforms where the Rust target is not equal to the clang target ([#16](https://github.com/trussed-dev/littlefs2-sys/pull/16))
## [0.2.0] - 2024-05-28
### Added
-2
View File
@@ -3,7 +3,6 @@ use std::path::PathBuf;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut builder = cc::Build::new();
let target = env::var("TARGET")?;
let builder = builder
.flag("-std=c11")
.flag("-DLFS_NO_DEBUG")
@@ -29,7 +28,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let bindings = bindgen::Builder::default()
.header("littlefs/lfs.h")
.clang_arg(format!("--target={}", target))
.use_core()
.allowlist_item("lfs_.*")
.allowlist_item("LFS_.*")