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"
14
14
15
15
exclude = [" mkl_lib/mkl.tar.xz" ]
16
16
17
- [build-dependencies ]
18
- git2 = " 0.6"
Original file line number Diff line number Diff line change 20
20
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
// SOFTWARE.
22
22
23
- extern crate git2;
24
-
25
23
use std:: env;
26
24
use std:: path:: * ;
27
25
use std:: process:: Command ;
28
26
29
27
const MKL_ARCHIVE : & ' static str = "mkl.tar.xz" ;
30
28
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
-
37
29
fn main ( ) {
38
30
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/{}" ,
43
32
MKL_ARCHIVE ) ;
44
- println ! ( "Download URI = {}" , uri) ;
45
33
Command :: new ( "wget" )
46
34
. args ( & [ "-q" , & uri, "-O" , MKL_ARCHIVE ] )
47
35
. current_dir ( & out_dir)
You can’t perform that action at this time.
0 commit comments