Skip to content

Commit

Permalink
Merge pull request #96 from blas-lapack-rs/use-out-dir
Browse files Browse the repository at this point in the history
Expand tar.gz on `OUT_DIR`
  • Loading branch information
termoshtt authored Dec 24, 2022
2 parents 5651ba9 + e0450fa commit 60cb554
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
12 changes: 0 additions & 12 deletions openblas-src/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,6 @@ categories = ["science"]
keywords = ["linear-algebra"]
build = "build.rs"
links = "openblas"
exclude = [
"source/benchmark/*",
"source/ctest/*",
"source/lapack-netlib/BLAS/TESTING/*",
"source/lapack-netlib/CBLAS/testing/*",
"source/lapack-netlib/TESTING/*.in",
"source/lapack-netlib/TESTING/EIG/*",
"source/lapack-netlib/TESTING/LIN/*",
"source/reference/*",
"source/test/*",
"source/utest/*",
]

[features]
default = ["cblas", "lapacke"]
Expand Down
8 changes: 4 additions & 4 deletions openblas-src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,13 @@ fn build() {
);
}

let source =
PathBuf::from(env!("CARGO_MANIFEST_DIR")).join(format!("OpenBLAS-{}", OPENBLAS_VERSION));
let source = output.join(format!("OpenBLAS-{}", OPENBLAS_VERSION));
if !source.exists() {
let crate_root = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
Command::new("tar")
.arg("xf")
.arg(format!("OpenBLAS-{}.tar.gz", OPENBLAS_VERSION))
.current_dir(env!("CARGO_MANIFEST_DIR"))
.arg(crate_root.join(format!("OpenBLAS-{}.tar.gz", OPENBLAS_VERSION)))
.current_dir(&output)
.status()
.expect("tar command not found");
}
Expand Down

0 comments on commit 60cb554

Please sign in to comment.