From 5e7c782b29d4317db9098e7482046fbbc9933054 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 27 Dec 2013 22:38:59 +0000 Subject: 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198087 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/bugpoint/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/bugpoint') diff --git a/tools/bugpoint/Makefile b/tools/bugpoint/Makefile index 20493218b0..96c0fcf519 100644 --- a/tools/bugpoint/Makefile +++ b/tools/bugpoint/Makefile @@ -12,4 +12,7 @@ TOOLNAME := bugpoint LINK_COMPONENTS := asmparser instrumentation scalaropts ipo linker bitreader \ bitwriter irreader vectorize objcarcopts +# Support plugins. +NO_DEAD_STRIP := 1 + include $(LEVEL)/Makefile.common -- cgit v1.2.3