Skip to content

Commit 8b2b2c0

Browse files
committed
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
1 parent f582479 commit 8b2b2c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/cmake/modules/AddLLVM.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ macro(add_llvm_executable name)
783783
llvm_update_compile_flags(${name})
784784
endif()
785785

786-
if (ARG_SUPPORT_PLUGINS)
786+
if (ARG_SUPPORT_PLUGINS AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "AIX")
787787
set(LLVM_NO_DEAD_STRIP On)
788788
endif()
789789

0 commit comments

Comments
 (0)