Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3258734

Browse files
committedNov 7, 2020
Restore openblas-src/source
1 parent 59bb690 commit 3258734

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed
 

‎.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "source"]
2-
path = openblas-build/source
2+
path = openblas-src/source
33
url = https://github.com/xianyi/OpenBLAS.git

‎openblas-build/src/build.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ use std::{
1010
use walkdir::WalkDir;
1111

1212
fn openblas_source_dir() -> PathBuf {
13-
let path = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("source");
13+
// FIXME This cannot work with cargo publish/package
14+
let path = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
15+
.parent()
16+
.unwrap()
17+
.join("openblas-src/source");
1418
if !path.join("Makefile").exists() {
1519
panic!("OpenBLAS repository has not been cloned. Run `git submodule update --init`");
1620
}

0 commit comments

Comments
 (0)
Please sign in to comment.