summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2016-02-03 16:29:04 +0000
committerTobias Grosser <tobias@grosser.es>2016-02-03 16:29:04 +0000
commitbea6c5472355ebd43b644d5cb88f096ed5280a68 (patch)
tree99f86a59fe4711c4facc67e2dd26f70df57ddbdf
parent05514e4d7fc30242caf42e3a624574b57e365c6f (diff)
downloadbcm5719-llvm-bea6c5472355ebd43b644d5cb88f096ed5280a68.tar.gz
bcm5719-llvm-bea6c5472355ebd43b644d5cb88f096ed5280a68.zip
Properly build shared libraries if LLVM_LINK_LLVM_DYLIB is enabled.
Contributed-by: Jack Howarth <howarthjw@gmail.com> llvm-svn: 259659
-rw-r--r--polly/lib/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/polly/lib/CMakeLists.txt b/polly/lib/CMakeLists.txt
index 371b97aa20f..b83e75b290b 100644
--- a/polly/lib/CMakeLists.txt
+++ b/polly/lib/CMakeLists.txt
@@ -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
OpenPOWER on IntegriCloud