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
This commit is contained in:
Tobias Grosser 2016-09-14 03:09:48 +00:00
parent 0758644461
commit 12cc2b80b6
1 changed files with 2 additions and 0 deletions

View File

@ -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)