mirror of
https://github.com/trussed-dev/littlefs2-sys.git
synced 2026-06-20 04:16:31 -07:00
don't set clang target as its already handled in bindgen by default
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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_.*")
|
||||
|
||||
Reference in New Issue
Block a user