We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c2a63d commit ff7de73Copy full SHA for ff7de73
tensorflow-sys/build.rs
@@ -41,7 +41,11 @@ fn main() {
41
return;
42
}
43
44
- if env::consts::ARCH == "x86_64" && (env::consts::OS == "linux" || env::consts::OS == "macos") {
+ let force_src = match env::var("TF_RUST_BUILD_FROM_SRC") {
45
+ Ok(s) => s == "true",
46
+ Err(_) => false,
47
+ };
48
+ if !force_src && env::consts::ARCH == "x86_64" && (env::consts::OS == "linux" || env::consts::OS == "macos") {
49
install_prebuilt();
50
} else {
51
build_from_src();
0 commit comments