Skip to content

Commit 030d60c

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 c0955a3 + de2ecea commit 030d60c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bootstrap/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ const LLVM_TOOLS: &[&str] = &[
206206
"llvm-objcopy", // used to transform ELFs into binary format which flashing tools consume
207207
"llvm-objdump", // used to disassemble programs
208208
"llvm-profdata", // used to inspect and merge files generated by profiles
209-
"llvm-size", // prints the size of the linker sections of a program
209+
"llvm-size", // used to prints the size of the linker sections of a program
210+
"llvm-strip", // used to discard symbols from binary files to reduce their size
210211
];
211212

212213
/// A structure representing a Rust compiler.

0 commit comments

Comments
 (0)