Properly build shared libraries if LLVM_LINK_LLVM_DYLIB is enabled.

Contributed-by: Jack Howarth <howarthjw@gmail.com>
llvm-svn: 259659
This commit is contained in:
Tobias Grosser 2016-02-03 16:29:04 +00:00
parent 05514e4d7f
commit bea6c54723
1 changed files with 7 additions and 0 deletions

View File

@ -77,6 +77,13 @@ if (BUILD_SHARED_LIBS)
link_directories(
${LLVM_LIBRARY_DIR}
)
elseif (LLVM_LINK_LLVM_DYLIB)
target_link_libraries(Polly
LLVM
)
link_directories(
${LLVM_LIBRARY_DIR}
)
endif()
# Build a monolithic Polly.a and a thin module LLVMPolly.moduleext that links to