[PATCH] D70130: Don't set LLVM_NO_DEAD_STRIP on AIX

David Tenty via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 12 09:14:06 PST 2019


daltenty created this revision.
Herald added subscribers: llvm-commits, mgorny.
Herald added a project: LLVM.
daltenty added reviewers: stevewan, sfertile, jasonliu.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70130

Files:
  llvm/cmake/modules/AddLLVM.cmake


Index: llvm/cmake/modules/AddLLVM.cmake
===================================================================
--- llvm/cmake/modules/AddLLVM.cmake
+++ llvm/cmake/modules/AddLLVM.cmake
@@ -783,7 +783,7 @@
     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()
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70130.228905.patch
Type: text/x-patch
Size: 399 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191112/4482e5f7/attachment.bin>


More information about the llvm-commits mailing list