summaryrefslogtreecommitdiffstats
path: root/llvm/cmake/modules
diff options
context:
space:
mode:
authorDavid Tenty <daltenty@ibm.com>2019-11-13 11:59:10 -0500
committerDavid Tenty <daltenty@ibm.com>2019-11-13 11:59:47 -0500
commit8b2b2c08d9945d1613ee2ce8923e0041bbb4c266 (patch)
tree0a6514093eb1ee9c39ed05541ca8480758b1e38f /llvm/cmake/modules
parentf5824799f612d9d3f19470a60533c2872bcc096b (diff)
downloadbcm5719-llvm-8b2b2c08d9945d1613ee2ce8923e0041bbb4c266.tar.gz
bcm5719-llvm-8b2b2c08d9945d1613ee2ce8923e0041bbb4c266.zip
Don't set LLVM_NO_DEAD_STRIP on AIX
Summary: when building plugins, as AIX has symbols in it's standard library that must be garbage collected or we will see link errors. Export lists will handle this instead on AIX. Reviewers: stevewan, sfertile, jasonliu, xingxue, DiggerLin Reviewed By: DiggerLin Subscribers: mgorny, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D70130
Diffstat (limited to 'llvm/cmake/modules')
-rw-r--r--llvm/cmake/modules/AddLLVM.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
index 0508b621622..9ab04136026 100644
--- a/llvm/cmake/modules/AddLLVM.cmake
+++ b/llvm/cmake/modules/AddLLVM.cmake
@@ -783,7 +783,7 @@ macro(add_llvm_executable name)
llvm_update_compile_flags(${name})
endif()
- if (ARG_SUPPORT_PLUGINS)
+ if (ARG_SUPPORT_PLUGINS AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "AIX")
set(LLVM_NO_DEAD_STRIP On)
endif()
OpenPOWER on IntegriCloud