Skip to content

Commit 061a0df

Browse files
committed
Drop code for obtaining OID
1 parent c7f7a43 commit 061a0df

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,3 @@ links = "mkl_intel_ilp64"
1414

1515
exclude = ["mkl_lib/mkl.tar.xz"]
1616

17-
[build-dependencies]
18-
git2 = "0.6"

build.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,16 @@
2020
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
// SOFTWARE.
2222

23-
extern crate git2;
24-
2523
use std::env;
2624
use std::path::*;
2725
use std::process::Command;
2826

2927
const MKL_ARCHIVE: &'static str = "mkl.tar.xz";
3028

31-
fn get_oid<P: AsRef<Path>>(crate_dir: P) -> String {
32-
let repo = git2::Repository::open(crate_dir).unwrap();
33-
let head = repo.head().unwrap();
34-
head.target().unwrap().to_string()
35-
}
36-
3729
fn main() {
3830
let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());
39-
let crate_dir = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap());
40-
let oid = get_oid(&crate_dir);
41-
let uri = format!("https://github.com/termoshtt/rust-intel-mkl/raw/{}/mkl_lib/{}",
42-
oid,
31+
let uri = format!("https://github.com/termoshtt/rust-intel-mkl/raw/master/mkl_lib/{}",
4332
MKL_ARCHIVE);
44-
println!("Download URI = {}", uri);
4533
Command::new("wget")
4634
.args(&["-q", &uri, "-O", MKL_ARCHIVE])
4735
.current_dir(&out_dir)

0 commit comments

Comments
 (0)