Skip to content

Commit b4938ed

Browse files
committed
Add OpenBLAS-0.3.21.tar.gz, and expand in build.rs
1 parent 5c9f172 commit b4938ed

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

openblas-src/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
OpenBLAS-*/

openblas-src/OpenBLAS-0.3.21.tar.gz

22.6 MB
Binary file not shown.

openblas-src/build.rs

+11-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,17 @@ fn build() {
158158
);
159159
}
160160

161-
let source = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("source");
161+
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+
}
162172
let deliv = cfg.build(&source, &output).unwrap();
163173

164174
println!("cargo:rustc-link-search={}", output.display());

0 commit comments

Comments
 (0)