File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -367,12 +367,10 @@ impl Step for Openssl {
367
367
if !ok {
368
368
panic ! ( "failed to download openssl source" )
369
369
}
370
- let mut shasum = if target . contains ( "apple" ) {
370
+ let mut shasum = {
371
371
let mut cmd = Command :: new ( "shasum" ) ;
372
372
cmd. arg ( "-a" ) . arg ( "256" ) ;
373
373
cmd
374
- } else {
375
- Command :: new ( "sha256sum" )
376
374
} ;
377
375
let output = output ( & mut shasum. arg ( & tmp) ) ;
378
376
let found = output. split_whitespace ( ) . next ( ) . unwrap ( ) ;
@@ -387,7 +385,7 @@ impl Step for Openssl {
387
385
let dst = build. openssl_install_dir ( target) . unwrap ( ) ;
388
386
drop ( fs:: remove_dir_all ( & obj) ) ;
389
387
drop ( fs:: remove_dir_all ( & dst) ) ;
390
- build. run ( Command :: new ( "tar" ) . arg ( "xf " ) . arg ( & tarball) . current_dir ( & out) ) ;
388
+ build. run ( Command :: new ( "tar" ) . arg ( "zxf " ) . arg ( & tarball) . current_dir ( & out) ) ;
391
389
392
390
let mut configure = Command :: new ( "perl" ) ;
393
391
configure. arg ( obj. join ( "Configure" ) ) ;
You can’t perform that action at this time.
0 commit comments