File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed
Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -14,5 +14,3 @@ links = "mkl_intel_ilp64"
1414
1515exclude = [" mkl_lib/mkl.tar.xz" ]
1616
17- [build-dependencies ]
18- git2 = " 0.6"
Original file line number Diff line number Diff line change 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-
2523use std:: env;
2624use std:: path:: * ;
2725use std:: process:: Command ;
2826
2927const 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-
3729fn 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)
You can’t perform that action at this time.
0 commit comments