about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-07-14 02:56:37 +0800
committerGitHub <noreply@github.com>2018-07-14 02:56:37 +0800
commitd8b84027848772fb99d4abf0450781cfd0d0b786 (patch)
treefd2be9f7101187f9d723b31342ac409dea939451 /src/bootstrap
parentbce32b532de61434841b7c2ce3085e1f63d6a7a1 (diff)
parentde2ecea3592c81eae5c0ce4e3d26729f7d552c34 (diff)
downloadrust-d8b84027848772fb99d4abf0450781cfd0d0b786.tar.gz
rust-d8b84027848772fb99d4abf0450781cfd0d0b786.zip
Rollup merge of #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
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs
index cd9a639e82e..1efff19dfb9 100644
--- a/src/bootstrap/lib.rs
+++ b/src/bootstrap/lib.rs
@@ -206,7 +206,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.