[llvm] r281438 - Ensure Polly linking works without BUILD_SHARED_LIBS
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 13 20:09:48 PDT 2016
Author: grosser
Date: Tue Sep 13 22:09:48 2016
New Revision: 281438
URL: http://llvm.org/viewvc/llvm-project?rev=281438&view=rev
Log:
Ensure Polly linking works without BUILD_SHARED_LIBS
This change ensures all necessary symbols are resolved correctly. Before this
change on some systems, the linker may have eliminated some symbols not directly
used in bugpoint, but used in Polly.
Suggested-by: Michael Kruse <lvm at meinersbur.de>
Modified:
llvm/trunk/tools/bugpoint/CMakeLists.txt
Modified: llvm/trunk/tools/bugpoint/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/bugpoint/CMakeLists.txt?rev=281438&r1=281437&r2=281438&view=diff
==============================================================================
--- llvm/trunk/tools/bugpoint/CMakeLists.txt (original)
+++ llvm/trunk/tools/bugpoint/CMakeLists.txt Tue Sep 13 22:09:48 2016
@@ -39,4 +39,6 @@ if(WITH_POLLY AND LINK_POLLY_INTO_TOOLS)
target_link_libraries(bugpoint ${lib})
endforeach(lib)
endif(POLLY_LINK_LIBS)
+ # Ensure LLVMTarget can resolve dependences in Polly.
+ target_link_libraries(bugpoint LLVMTarget)
endif(WITH_POLLY AND LINK_POLLY_INTO_TOOLS)
More information about the llvm-commits
mailing list