From 8b2b2c08d9945d1613ee2ce8923e0041bbb4c266 Mon Sep 17 00:00:00 2001 From: David Tenty Date: Wed, 13 Nov 2019 11:59:10 -0500 Subject: 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 --- llvm/cmake/modules/AddLLVM.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/cmake/modules') 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() -- cgit v1.2.3