summaryrefslogtreecommitdiffstats
path: root/llvm/cmake/modules
diff options
context:
space:
mode:
authorDavid Tenty <daltenty@ibm.com>2019-10-30 14:56:20 -0400
committerDavid Tenty <daltenty@ibm.com>2019-10-30 14:56:20 -0400
commit23df0c783c7053ddcdf665ebc8ddda350abd5bf2 (patch)
tree7c720bb98e8d01b23268ec073fe1a802af897ef7 /llvm/cmake/modules
parent443f99eae268f052002b887e6047f8cd6da70b45 (diff)
downloadbcm5719-llvm-23df0c783c7053ddcdf665ebc8ddda350abd5bf2.tar.gz
bcm5719-llvm-23df0c783c7053ddcdf665ebc8ddda350abd5bf2.zip
Revert "[NFC] Rename LLVM_NO_DEAD_STRIP"
This reverts commit 11c2a85db8849db1a5907e80d9966592248ef825.
Diffstat (limited to 'llvm/cmake/modules')
-rw-r--r--llvm/cmake/modules/AddLLVM.cmake4
-rw-r--r--llvm/cmake/modules/HandleLLVMOptions.cmake2
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
index 41e72c7e9bc..b5f612469ff 100644
--- a/llvm/cmake/modules/AddLLVM.cmake
+++ b/llvm/cmake/modules/AddLLVM.cmake
@@ -228,7 +228,7 @@ function(add_link_opts target_name)
# to enable. See https://sourceware.org/bugzilla/show_bug.cgi?id=17704.
endif()
- if(NOT LLVM_SUPPORT_PLUGINS)
+ if(NOT LLVM_NO_DEAD_STRIP)
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
# ld64's implementation of -dead_strip breaks tools that use plugins.
set_property(TARGET ${target_name} APPEND_STRING PROPERTY
@@ -245,7 +245,7 @@ function(add_link_opts target_name)
set_property(TARGET ${target_name} APPEND_STRING PROPERTY
LINK_FLAGS " -Wl,--gc-sections")
endif()
- else() #LLVM_SUPPORT_PLUGINS
+ else() #LLVM_NO_DEAD_STRIP
if(${CMAKE_SYSTEM_NAME} MATCHES "AIX")
set_property(TARGET ${target_name} APPEND_STRING PROPERTY
LINK_FLAGS " -Wl,-bnogc")
diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake
index 5aa72568c65..03acea48797 100644
--- a/llvm/cmake/modules/HandleLLVMOptions.cmake
+++ b/llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -744,7 +744,7 @@ endif()
# Add flags for add_dead_strip().
# FIXME: With MSVS, consider compiling with /Gy and linking with /OPT:REF?
# But MinSizeRel seems to add that automatically, so maybe disable these
-# flags instead if LLVM_SUPPORT_PLUGINS is set.
+# flags instead if LLVM_NO_DEAD_STRIP is set.
if(NOT CYGWIN AND NOT WIN32)
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND
NOT uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG")
OpenPOWER on IntegriCloud