File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -332,7 +332,7 @@ pub struct Deliverables {
332
332
impl Configure {
333
333
fn cross_compile_args ( & self ) -> Result < Vec < String > , Error > {
334
334
let mut args = Vec :: new ( ) ;
335
- for name in & vec ! [ "CC" , "FC" , "HOSTCC" ] {
335
+ for name in [ "CC" , "FC" , "HOSTCC" ] {
336
336
if let Ok ( value) = std:: env:: var ( format ! ( "OPENBLAS_{}" , name) ) {
337
337
args. push ( format ! ( "{}={}" , name, value) ) ;
338
338
eprintln ! ( "{}={}" , name, value) ;
@@ -344,6 +344,13 @@ impl Configure {
344
344
if !args. is_empty ( ) && args. len ( ) != 3 {
345
345
return Err ( Error :: MissingCrossCompileInfo ) ;
346
346
}
347
+ // optional flags
348
+ for name in [ "RANLIB" ] {
349
+ if let Ok ( value) = std:: env:: var ( format ! ( "OPENBLAS_{}" , name) ) {
350
+ args. push ( format ! ( "{}={}" , name, value) ) ;
351
+ eprintln ! ( "{}={}" , name, value) ;
352
+ }
353
+ }
347
354
Ok ( args)
348
355
}
349
356
You can’t perform that action at this time.
0 commit comments