From 94d1e67cb555f544252a88235a33a2caa378ae63 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Mon, 30 Dec 2013 03:36:05 +0000 Subject: Port r198087 and r198089 (strip dead code by default) from make to cmake. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198198 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/bugpoint/CMakeLists.txt | 3 +++ tools/llc/CMakeLists.txt | 3 +++ tools/opt/CMakeLists.txt | 3 +++ 3 files changed, 9 insertions(+) (limited to 'tools') diff --git a/tools/bugpoint/CMakeLists.txt b/tools/bugpoint/CMakeLists.txt index 7e7ad0e94c..14f5a3b004 100644 --- a/tools/bugpoint/CMakeLists.txt +++ b/tools/bugpoint/CMakeLists.txt @@ -16,6 +16,9 @@ set(LLVM_LINK_COMPONENTS Vectorize ) +# Support plugins. +set(LLVM_NO_DEAD_STRIP 1) + add_llvm_tool(bugpoint BugDriver.cpp CrashDebugger.cpp diff --git a/tools/llc/CMakeLists.txt b/tools/llc/CMakeLists.txt index 9a3d411a28..393d64c0ef 100644 --- a/tools/llc/CMakeLists.txt +++ b/tools/llc/CMakeLists.txt @@ -11,6 +11,9 @@ set(LLVM_LINK_COMPONENTS Target ) +# Support plugins. +set(LLVM_NO_DEAD_STRIP 1) + add_llvm_tool(llc llc.cpp ) diff --git a/tools/opt/CMakeLists.txt b/tools/opt/CMakeLists.txt index 816edeae2d..f96f9b35ef 100644 --- a/tools/opt/CMakeLists.txt +++ b/tools/opt/CMakeLists.txt @@ -17,6 +17,9 @@ set(LLVM_LINK_COMPONENTS Vectorize ) +# Support plugins. +set(LLVM_NO_DEAD_STRIP 1) + add_llvm_tool(opt AnalysisWrappers.cpp GraphPrinters.cpp -- cgit v1.2.3