Skip to content

Commit c7c9c5a

Browse files
author
git apple-llvm automerger
committed
Merge commit '23df0c783c70' from llvm.org/master into apple/master
2 parents 4d422f3 + 23df0c7 commit c7c9c5a

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

clang/tools/driver/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ set( LLVM_LINK_COMPONENTS
2020
option(CLANG_PLUGIN_SUPPORT "Build clang with plugin support" ON)
2121

2222
# Support plugins. This must be before add_clang_executable as it reads
23-
# LLVM_SUPPORT_PLUGINS.
23+
# LLVM_NO_DEAD_STRIP.
2424
if(CLANG_PLUGIN_SUPPORT)
25-
set(LLVM_SUPPORT_PLUGINS 1)
25+
set(LLVM_NO_DEAD_STRIP 1)
2626
endif()
2727

2828
if(NOT CLANG_BUILT_STANDALONE)

llvm/cmake/modules/AddLLVM.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ function(add_link_opts target_name)
228228
# to enable. See https://sourceware.org/bugzilla/show_bug.cgi?id=17704.
229229
endif()
230230

231-
if(NOT LLVM_SUPPORT_PLUGINS)
231+
if(NOT LLVM_NO_DEAD_STRIP)
232232
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
233233
# ld64's implementation of -dead_strip breaks tools that use plugins.
234234
set_property(TARGET ${target_name} APPEND_STRING PROPERTY
@@ -245,7 +245,7 @@ function(add_link_opts target_name)
245245
set_property(TARGET ${target_name} APPEND_STRING PROPERTY
246246
LINK_FLAGS " -Wl,--gc-sections")
247247
endif()
248-
else() #LLVM_SUPPORT_PLUGINS
248+
else() #LLVM_NO_DEAD_STRIP
249249
if(${CMAKE_SYSTEM_NAME} MATCHES "AIX")
250250
set_property(TARGET ${target_name} APPEND_STRING PROPERTY
251251
LINK_FLAGS " -Wl,-bnogc")

llvm/cmake/modules/HandleLLVMOptions.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ endif()
755755
# Add flags for add_dead_strip().
756756
# FIXME: With MSVS, consider compiling with /Gy and linking with /OPT:REF?
757757
# But MinSizeRel seems to add that automatically, so maybe disable these
758-
# flags instead if LLVM_SUPPORT_PLUGINS is set.
758+
# flags instead if LLVM_NO_DEAD_STRIP is set.
759759
if(NOT CYGWIN AND NOT WIN32)
760760
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND
761761
NOT uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG")

llvm/tools/bugpoint/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ set(LLVM_LINK_COMPONENTS
2222
)
2323

2424
# Support plugins.
25-
set(LLVM_SUPPORT_PLUGINS 1)
25+
set(LLVM_NO_DEAD_STRIP 1)
2626

2727
add_llvm_tool(bugpoint
2828
BugDriver.cpp

llvm/tools/llc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ set(LLVM_LINK_COMPONENTS
2020
)
2121

2222
# Support plugins.
23-
set(LLVM_SUPPORT_PLUGINS 1)
23+
set(LLVM_NO_DEAD_STRIP 1)
2424

2525
add_llvm_tool(llc
2626
llc.cpp

llvm/tools/opt/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ set(LLVM_LINK_COMPONENTS
2525
)
2626

2727
# Support plugins.
28-
set(LLVM_SUPPORT_PLUGINS 1)
28+
set(LLVM_NO_DEAD_STRIP 1)
2929

3030
add_llvm_tool(opt
3131
AnalysisWrappers.cpp

0 commit comments

Comments
 (0)