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 a93816b commit e0450faCopy full SHA for e0450fa
openblas-src/build.rs
@@ -160,13 +160,13 @@ fn build() {
160
);
161
}
162
163
- let source =
164
- PathBuf::from(env!("CARGO_MANIFEST_DIR")).join(format!("OpenBLAS-{}", OPENBLAS_VERSION));
+ let source = output.join(format!("OpenBLAS-{}", OPENBLAS_VERSION));
165
if !source.exists() {
+ let crate_root = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
166
Command::new("tar")
167
.arg("xf")
168
- .arg(format!("OpenBLAS-{}.tar.gz", OPENBLAS_VERSION))
169
- .current_dir(env!("CARGO_MANIFEST_DIR"))
+ .arg(crate_root.join(format!("OpenBLAS-{}.tar.gz", OPENBLAS_VERSION)))
+ .current_dir(&output)
170
.status()
171
.expect("tar command not found");
172
0 commit comments