summaryrefslogtreecommitdiffstats
path: root/clang/tools/driver
diff options
context:
space:
mode:
authorDavid Tenty <daltenty@ibm.com>2019-11-06 13:05:32 -0500
committerDavid Tenty <daltenty@ibm.com>2019-11-06 14:32:35 -0500
commit6740a88dc18d0be14926a5e709bd5062e31ee81c (patch)
tree4db20a759b9aa442bbbfc6cd8b3952207ceed89c /clang/tools/driver
parent52af7aedfe5dd5cfb1a6f486040a2549bbdbcf93 (diff)
downloadbcm5719-llvm-6740a88dc18d0be14926a5e709bd5062e31ee81c.tar.gz
bcm5719-llvm-6740a88dc18d0be14926a5e709bd5062e31ee81c.zip
[NFC] Add SUPPORT_PLUGINS to add_llvm_executable()
Summary: this allows us to move logic about when it is appropriate set LLVM_NO_DEAD_STRIP out of each tool and into add_llvm_executable, which will enable future platform specific handling. This is a follow on to the reverted D69356 Reviewers: hubert.reinterpretcast, beanz, lhames Reviewed By: beanz Subscribers: mgorny, cfe-commits, llvm-commits Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D69638
Diffstat (limited to 'clang/tools/driver')
-rw-r--r--clang/tools/driver/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/tools/driver/CMakeLists.txt b/clang/tools/driver/CMakeLists.txt
index 590d708d837..52a95e6bc6b 100644
--- a/clang/tools/driver/CMakeLists.txt
+++ b/clang/tools/driver/CMakeLists.txt
@@ -19,10 +19,9 @@ set( LLVM_LINK_COMPONENTS
option(CLANG_PLUGIN_SUPPORT "Build clang with plugin support" ON)
-# Support plugins. This must be before add_clang_executable as it reads
-# LLVM_NO_DEAD_STRIP.
+# Support plugins.
if(CLANG_PLUGIN_SUPPORT)
- set(LLVM_NO_DEAD_STRIP 1)
+ set(support_plugins SUPPORT_PLUGINS)
endif()
if(NOT CLANG_BUILT_STANDALONE)
@@ -37,6 +36,7 @@ add_clang_tool(clang
DEPENDS
${tablegen_deps}
+ ${support_plugins}
)
clang_target_link_libraries(clang
OpenPOWER on IntegriCloud