File tree 1 file changed +13
-0
lines changed
src/tools/opt-dist/src/utils
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,21 @@ pub fn print_binary_sizes(env: &Environment) -> anyhow::Result<()> {
15
15
16
16
let root = env. build_artifacts ( ) . join ( "stage2" ) ;
17
17
18
+ let all_lib_files = get_files_from_dir ( & root. join ( "lib" ) , None ) ?;
19
+
18
20
let mut files = get_files_from_dir ( & root. join ( "bin" ) , None ) ?;
19
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
+
20
33
files. sort_unstable ( ) ;
21
34
22
35
let items: Vec < _ > = files
You can’t perform that action at this time.
0 commit comments