Skip to content

Commit

Permalink
Support macOS/aarch64 without bindgen
Browse files Browse the repository at this point in the history
  • Loading branch information
aholtzma-am authored Aug 15, 2021
1 parent fdce5a2 commit f7ca1d7
Show file tree
Hide file tree
Showing 4 changed files with 8,767 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Use at your own risk.
* `armv7-unknown-linux-gnueabihf` (dynamic + static)
* `armv7-unknown-linux-musleabihf` (static)
* `x86_64-apple-darwin` (dynamic)
* `aarch64-apple-darwin` (dynamic)

## References

Expand Down
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fn search_path<'a>() -> &'a str {
target_arch => panic!("Target architecture not supported: {}", target_arch),
},
"macos" => match env::var("CARGO_CFG_TARGET_ARCH").unwrap().as_str() {
"x86_64" => "vendor/macos/build",
"x86_64" | "aarch64" => "vendor/macos/build",
target_arch => panic!("Target architecture not supported: {}", target_arch),
},
target_os => panic!("Target OS not supported: {}", target_os),
Expand Down Expand Up @@ -71,7 +71,7 @@ fn header_path<'a>() -> &'a str {
target_arch => panic!("Target architecture not supported: {}", target_arch),
},
"macos" => match env::var("CARGO_CFG_TARGET_ARCH").unwrap().as_str() {
"x86_64" => "vendor/macos/ftd2xx.h",
"x86_64" | "aarch64" => "vendor/macos/ftd2xx.h",
target_arch => panic!("Target architecture not supported: {}", target_arch),
},
target_os => panic!("Target OS not supported: {}", target_os),
Expand Down
Loading

0 comments on commit f7ca1d7

Please sign in to comment.