diff options
| author | CrLF0710 <crlf0710@gmail.com> | 2018-07-01 16:51:44 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-01 16:51:44 +0800 |
| commit | de2ecea3592c81eae5c0ce4e3d26729f7d552c34 (patch) | |
| tree | c520f4441b311b3a3bc092bbfc906f5cc0f0b1f1 /src/bootstrap | |
| parent | a1703baf520b8c14f50719c9ffa8036f3b782134 (diff) | |
| download | rust-de2ecea3592c81eae5c0ce4e3d26729f7d552c34.tar.gz rust-de2ecea3592c81eae5c0ce4e3d26729f7d552c34.zip | |
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
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index b5d450b8839..148f22bd0a5 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -204,7 +204,8 @@ const LLVM_TOOLS: &[&str] = &[ "llvm-objcopy", // used to transform ELFs into binary format which flashing tools consume "llvm-objdump", // used to disassemble programs "llvm-profdata", // used to inspect and merge files generated by profiles - "llvm-size", // prints the size of the linker sections of a program + "llvm-size", // used to prints the size of the linker sections of a program + "llvm-strip", // used to discard symbols from binary files to reduce their size ]; /// A structure representing a Rust compiler. |
