Skip to content

Commit de2ecea

Browse files
authored
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
1 parent a1703ba commit de2ecea

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
@@ -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)