summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2016-09-14 03:09:48 +0000
committerTobias Grosser <tobias@grosser.es>2016-09-14 03:09:48 +0000
commit12cc2b80b69d1bddac53e9bee6d303fc118272e1 (patch)
tree694c3adc1ebdb9e77b6c21ea3edace89146e336e /llvm/tools
parent0758644461caac5b56cbd439771d8e51d8ca52fa (diff)
downloadbcm5719-llvm-12cc2b80b69d1bddac53e9bee6d303fc118272e1.tar.gz
bcm5719-llvm-12cc2b80b69d1bddac53e9bee6d303fc118272e1.zip
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@meinersbur.de> llvm-svn: 281438
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/bugpoint/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/bugpoint/CMakeLists.txt b/llvm/tools/bugpoint/CMakeLists.txt
index 287a26ecd40..8638f199f7e 100644
--- a/llvm/tools/bugpoint/CMakeLists.txt
+++ b/llvm/tools/bugpoint/CMakeLists.txt
@@ -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)
OpenPOWER on IntegriCloud