Skip to content

Commit

Permalink
don't set clang target as its already handled in bindgen by default
Browse files Browse the repository at this point in the history
  • Loading branch information
liebman authored and robin-nitrokey committed Sep 18, 2024
1 parent cd3a80d commit aa64d08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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_.*")
Expand Down

0 comments on commit aa64d08

Please sign in to comment.