[llvm] 8b2b2c0 - Don't set LLVM_NO_DEAD_STRIP on AIX
David Tenty via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 13 08:59:52 PST 2019
Author: David Tenty
Date: 2019-11-13T11:59:47-05:00
New Revision: 8b2b2c08d9945d1613ee2ce8923e0041bbb4c266
URL: https://github.com/llvm/llvm-project/commit/8b2b2c08d9945d1613ee2ce8923e0041bbb4c266
DIFF: https://github.com/llvm/llvm-project/commit/8b2b2c08d9945d1613ee2ce8923e0041bbb4c266.diff
LOG: 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
Added:
Modified:
llvm/cmake/modules/AddLLVM.cmake
Removed:
################################################################################
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
index 0508b621622b..9ab041360260 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()
More information about the llvm-commits
mailing list