Skip to content

Commit 7fc299e

Browse files
Rollup merge of rust-lang#51962 - crlf0710:patch-2, r=alexcrichton
Provide llvm-strip in llvm-tools component Shipping this tool gives people reliable way to reduce the generated executable size. I'm not sure if this strip tool is available from the llvm version current rust is built on. But let's take a look. @japaric
2 parents 898882b + de2ecea commit 7fc299e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bootstrap/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ const LLVM_TOOLS: &[&str] = &[
204204
"llvm-objcopy", // used to transform ELFs into binary format which flashing tools consume
205205
"llvm-objdump", // used to disassemble programs
206206
"llvm-profdata", // used to inspect and merge files generated by profiles
207-
"llvm-size", // prints the size of the linker sections of a program
207+
"llvm-size", // used to prints the size of the linker sections of a program
208+
"llvm-strip", // used to discard symbols from binary files to reduce their size
208209
];
209210

210211
/// A structure representing a Rust compiler.

0 commit comments

Comments
 (0)