We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c9f172 commit b4938edCopy full SHA for b4938ed
openblas-src/.gitignore
@@ -0,0 +1 @@
1
+OpenBLAS-*/
openblas-src/OpenBLAS-0.3.21.tar.gz
22.6 MB
openblas-src/build.rs
@@ -158,7 +158,17 @@ fn build() {
158
);
159
}
160
161
- let source = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("source");
+ let openblas_version = "0.3.21";
162
+ let source =
163
+ PathBuf::from(env!("CARGO_MANIFEST_DIR")).join(format!("OpenBLAS-{}", openblas_version));
164
+ if !source.exists() {
165
+ Command::new("tar")
166
+ .arg("xf")
167
+ .arg(format!("OpenBLAS-{}.tar.gz", openblas_version))
168
+ .current_dir(env!("CARGO_MANIFEST_DIR"))
169
+ .status()
170
+ .expect("tar command not found");
171
+ }
172
let deliv = cfg.build(&source, &output).unwrap();
173
174
println!("cargo:rustc-link-search={}", output.display());
0 commit comments