diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2013-12-27 22:38:59 +0000 |
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2013-12-27 22:38:59 +0000 |
| commit | 47ba8fa7ecb40a0eaebb93045a2d83ccfbe794d7 (patch) | |
| tree | c7ee6fe2f0bff8f71a756bb968acee25dcf1dd30 /llvm/tools/opt/Makefile | |
| parent | 52b10afb08d7d85263209929f24a804e6ad75b08 (diff) | |
| download | bcm5719-llvm-47ba8fa7ecb40a0eaebb93045a2d83ccfbe794d7.tar.gz bcm5719-llvm-47ba8fa7ecb40a0eaebb93045a2d83ccfbe794d7.zip | |
Strip dead code when linking by default with BFD ld (linux, ...) and ld64 (os x).
This reduces the size of clang-format from 22 MB to 1.8 MB, diagtool goes from
21 MB to 2.8 MB, libclang.so goes from 29 MB to 20 MB, etc. The size of the
bin/ folder shrinks from 270 MB to 200 MB.
Targets that support plugins and don't already use EXPORTED_SYMBOL_FILE
(which libclang and libLTO already do) can set NO_DEAD_STRIP to opt out.
llvm-svn: 198087
Diffstat (limited to 'llvm/tools/opt/Makefile')
| -rw-r--r-- | llvm/tools/opt/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/opt/Makefile b/llvm/tools/opt/Makefile index a451005574a..fa2d0145531 100644 --- a/llvm/tools/opt/Makefile +++ b/llvm/tools/opt/Makefile @@ -11,4 +11,7 @@ LEVEL := ../.. TOOLNAME := opt LINK_COMPONENTS := bitreader bitwriter asmparser irreader instrumentation scalaropts objcarcopts ipo vectorize all-targets +# Support plugins. +NO_DEAD_STRIP := 1 + include $(LEVEL)/Makefile.common |

