Skip to content

Commit 60cb554

Browse files
authored
Merge pull request #96 from blas-lapack-rs/use-out-dir
Expand tar.gz on `OUT_DIR`
2 parents 5651ba9 + e0450fa commit 60cb554

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

openblas-src/Cargo.toml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,6 @@ categories = ["science"]
2222
keywords = ["linear-algebra"]
2323
build = "build.rs"
2424
links = "openblas"
25-
exclude = [
26-
"source/benchmark/*",
27-
"source/ctest/*",
28-
"source/lapack-netlib/BLAS/TESTING/*",
29-
"source/lapack-netlib/CBLAS/testing/*",
30-
"source/lapack-netlib/TESTING/*.in",
31-
"source/lapack-netlib/TESTING/EIG/*",
32-
"source/lapack-netlib/TESTING/LIN/*",
33-
"source/reference/*",
34-
"source/test/*",
35-
"source/utest/*",
36-
]
3725

3826
[features]
3927
default = ["cblas", "lapacke"]

openblas-src/build.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,13 @@ fn build() {
160160
);
161161
}
162162

163-
let source =
164-
PathBuf::from(env!("CARGO_MANIFEST_DIR")).join(format!("OpenBLAS-{}", OPENBLAS_VERSION));
163+
let source = output.join(format!("OpenBLAS-{}", OPENBLAS_VERSION));
165164
if !source.exists() {
165+
let crate_root = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
166166
Command::new("tar")
167167
.arg("xf")
168-
.arg(format!("OpenBLAS-{}.tar.gz", OPENBLAS_VERSION))
169-
.current_dir(env!("CARGO_MANIFEST_DIR"))
168+
.arg(crate_root.join(format!("OpenBLAS-{}.tar.gz", OPENBLAS_VERSION)))
169+
.current_dir(&output)
170170
.status()
171171
.expect("tar command not found");
172172
}

0 commit comments

Comments
 (0)