We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f13becf commit 3fcfbc8Copy full SHA for 3fcfbc8
tensorflow-sys/build.rs
@@ -65,11 +65,13 @@ fn main() {
65
Err(_) => false,
66
};
67
68
- let target_os = target_os();
69
- if !force_src
70
- && target_arch() == "x86_64"
71
- && (target_os == "linux" || target_os == "macos" || target_os == "windows")
72
- {
+ let prebuilt_supported = match (&target_arch() as &str, &target_os() as &str) {
+ ("x86_64", "linux") => true,
+ ("x86_64", "windows") => true,
+ ("arm64", "macos") => true,
+ _ => false,
73
+ };
74
+ if !force_src && prebuilt_supported {
75
install_prebuilt();
76
} else {
77
build_from_src();
0 commit comments