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 @@ -266,7 +266,7 @@ pub struct Deliverables {
266
266
impl Configure {
267
267
fn cross_compile_args ( & self ) -> Result < Vec < String > , Error > {
268
268
let mut args = Vec :: new ( ) ;
269
- for name in & vec ! [ "CC" , "FC" , "HOSTCC" ] {
269
+ for name in [ "CC" , "FC" , "HOSTCC" ] {
270
270
if let Ok ( value) = std:: env:: var ( format ! ( "OPENBLAS_{}" , name) ) {
271
271
args. push ( format ! ( "{}={}" , name, value) ) ;
272
272
eprintln ! ( "{}={}" , name, value) ;
@@ -278,6 +278,13 @@ impl Configure {
278
278
if !args. is_empty ( ) && args. len ( ) != 3 {
279
279
return Err ( Error :: MissingCrossCompileInfo ) ;
280
280
}
281
+ // optional flags
282
+ for name in [ "RANLIB" ] {
283
+ if let Ok ( value) = std:: env:: var ( format ! ( "OPENBLAS_{}" , name) ) {
284
+ args. push ( format ! ( "{}={}" , name, value) ) ;
285
+ eprintln ! ( "{}={}" , name, value) ;
286
+ }
287
+ }
281
288
Ok ( args)
282
289
}
283
290
You can’t perform that action at this time.
0 commit comments