Skip to content

Commit 10f362b

Browse files
committed
Fixed a bug with ARM targets selecting the wrong bindings.
1 parent 1337a8e commit 10f362b

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.5.1] - 2020-12-10
8+
### Fixed
9+
- Fixed a bug with ARM targets selecting the wrong bindings.
10+
711
## [0.5.0] - 2020-12-28
812
### Added
913
- Added pre-generated bindings for `i686-unknown-linux` targets.
@@ -21,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2125
### Fixed
2226
- Fixed `build.rs` script to handle cross compilation.
2327

24-
[Unreleased]: https://github.com/newAM/libftd2xx-ffi-rs/compare/0.5.0...HEAD
28+
[Unreleased]: https://github.com/newAM/libftd2xx-ffi-rs/compare/0.5.1...HEAD
29+
[0.5.0]: https://github.com/newAM/libftd2xx-ffi-rs/compare/0.5.1...0.5.0
2530
[0.5.0]: https://github.com/newAM/libftd2xx-ffi-rs/compare/0.5.0...0.4.1
2631
[0.4.1]: https://github.com/newAM/libftd2xx-ffi-rs/compare/0.4.0...0.4.1

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ cfg_if::cfg_if! {
102102
include!("bindings_windows_x64.rs");
103103
} else if #[cfg(all(target_os = "windows", target_arch = "x86"))] {
104104
include!("bindings_windows_x86.rs");
105-
} else if #[cfg(any(target_os = "linux", target_arch = "arm"))] {
105+
} else if #[cfg(all(target_os = "linux", target_arch = "arm"))] {
106106
include!("bindings_linux_armv6.rs");
107-
} else if #[cfg(any(target_os = "linux", target_arch = "aarch64"))] {
107+
} else if #[cfg(all(target_os = "linux", target_arch = "aarch64"))] {
108108
include!("bindings_linux_armv8.rs");
109109
} else {
110110
std::compile_error!("pre-generated bindings are not avaliable for your target");

0 commit comments

Comments
 (0)