File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed 
src/tools/opt-dist/src/utils Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -15,21 +15,8 @@ pub fn print_binary_sizes(env: &Environment) -> anyhow::Result<()> {
1515
1616    let  root = env. build_artifacts ( ) . join ( "stage2" ) ; 
1717
18-     let  all_lib_files = get_files_from_dir ( & root. join ( "lib" ) ,  None ) ?; 
19- 
2018    let  mut  files = get_files_from_dir ( & root. join ( "bin" ) ,  None ) ?; 
21-     files. extend ( get_files_from_dir ( & root. join ( "lib" ) ,  Some ( ".so" ) ) ?) ; 
22- 
23-     // libLLVM.so can be named libLLVM.so.<suffix>, so we try to explicitly add it here if it 
24-     // wasn't found by the above call. 
25-     if  !files. iter ( ) . any ( |f| f. file_name ( ) . unwrap_or_default ( ) . starts_with ( "libLLVM" ) )  { 
26-         if  let  Some ( llvm_lib)  =
27-             all_lib_files. iter ( ) . find ( |f| f. file_name ( ) . unwrap_or_default ( ) . starts_with ( "libLLVM" ) ) 
28-         { 
29-             files. push ( llvm_lib. clone ( ) ) ; 
30-         } 
31-     } 
32- 
19+     files. extend ( get_files_from_dir ( & root. join ( "lib" ) ,  None ) ?) ; 
3320    files. sort_unstable ( ) ; 
3421
3522    let  items:  Vec < _ >  = files
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments