From 12cc2b80b69d1bddac53e9bee6d303fc118272e1 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Wed, 14 Sep 2016 03:09:48 +0000 Subject: [PATCH] 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 llvm-svn: 281438 --- llvm/tools/bugpoint/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/tools/bugpoint/CMakeLists.txt b/llvm/tools/bugpoint/CMakeLists.txt index 287a26e..8638f19 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) -- 2.7.4