forked from OSchip/llvm-project
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:
parent
05514e4d7f
commit
bea6c54723
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue