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 {
332332impl Configure {
333333 fn cross_compile_args ( & self ) -> Result < Vec < String > , Error > {
334334 let mut args = Vec :: new ( ) ;
335- for name in & vec ! [ "CC" , "FC" , "HOSTCC" ] {
335+ for name in [ "CC" , "FC" , "HOSTCC" ] {
336336 if let Ok ( value) = std:: env:: var ( format ! ( "OPENBLAS_{}" , name) ) {
337337 args. push ( format ! ( "{}={}" , name, value) ) ;
338338 eprintln ! ( "{}={}" , name, value) ;
@@ -344,6 +344,13 @@ impl Configure {
344344 if !args. is_empty ( ) && args. len ( ) != 3 {
345345 return Err ( Error :: MissingCrossCompileInfo ) ;
346346 }
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+ }
347354 Ok ( args)
348355 }
349356
You can’t perform that action at this time.
0 commit comments