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<()> {
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
-
20
18
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)?);
33
20
files.sort_unstable();
34
21
35
22
let items: Vec<_> = files
You can’t perform that action at this time.
0 commit comments