summaryrefslogtreecommitdiff
path: root/tools/opt
diff options
context:
space:
mode:
Diffstat (limited to 'tools/opt')
-rw-r--r--tools/opt/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
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