File tree 6 files changed +8
-8
lines changed
6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ set( LLVM_LINK_COMPONENTS
20
20
option (CLANG_PLUGIN_SUPPORT "Build clang with plugin support" ON )
21
21
22
22
# Support plugins. This must be before add_clang_executable as it reads
23
- # LLVM_SUPPORT_PLUGINS .
23
+ # LLVM_NO_DEAD_STRIP .
24
24
if (CLANG_PLUGIN_SUPPORT)
25
- set (LLVM_SUPPORT_PLUGINS 1)
25
+ set (LLVM_NO_DEAD_STRIP 1)
26
26
endif ()
27
27
28
28
if (NOT CLANG_BUILT_STANDALONE)
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ function(add_link_opts target_name)
228
228
# to enable. See https://sourceware.org/bugzilla/show_bug.cgi?id=17704.
229
229
endif ()
230
230
231
- if (NOT LLVM_SUPPORT_PLUGINS )
231
+ if (NOT LLVM_NO_DEAD_STRIP )
232
232
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" )
233
233
# ld64's implementation of -dead_strip breaks tools that use plugins.
234
234
set_property (TARGET ${target_name} APPEND_STRING PROPERTY
@@ -245,7 +245,7 @@ function(add_link_opts target_name)
245
245
set_property (TARGET ${target_name} APPEND_STRING PROPERTY
246
246
LINK_FLAGS " -Wl,--gc-sections" )
247
247
endif ()
248
- else () #LLVM_SUPPORT_PLUGINS
248
+ else () #LLVM_NO_DEAD_STRIP
249
249
if (${CMAKE_SYSTEM_NAME} MATCHES "AIX" )
250
250
set_property (TARGET ${target_name} APPEND_STRING PROPERTY
251
251
LINK_FLAGS " -Wl,-bnogc" )
Original file line number Diff line number Diff line change @@ -755,7 +755,7 @@ endif()
755
755
# Add flags for add_dead_strip().
756
756
# FIXME: With MSVS, consider compiling with /Gy and linking with /OPT:REF?
757
757
# 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.
759
759
if (NOT CYGWIN AND NOT WIN32 )
760
760
if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND
761
761
NOT uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG" )
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ set(LLVM_LINK_COMPONENTS
22
22
)
23
23
24
24
# Support plugins.
25
- set (LLVM_SUPPORT_PLUGINS 1)
25
+ set (LLVM_NO_DEAD_STRIP 1)
26
26
27
27
add_llvm_tool(bugpoint
28
28
BugDriver.cpp
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ set(LLVM_LINK_COMPONENTS
20
20
)
21
21
22
22
# Support plugins.
23
- set (LLVM_SUPPORT_PLUGINS 1)
23
+ set (LLVM_NO_DEAD_STRIP 1)
24
24
25
25
add_llvm_tool(llc
26
26
llc.cpp
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ set(LLVM_LINK_COMPONENTS
25
25
)
26
26
27
27
# Support plugins.
28
- set (LLVM_SUPPORT_PLUGINS 1)
28
+ set (LLVM_NO_DEAD_STRIP 1)
29
29
30
30
add_llvm_tool(opt
31
31
AnalysisWrappers.cpp
You can’t perform that action at this time.
0 commit comments