summaryrefslogtreecommitdiff
path: root/polly
diff options
context:
space:
mode:
authorMichael Kruse <llvm-project@meinersbur.de>2023-03-09 10:48:02 -0600
committerMichael Kruse <llvm-project@meinersbur.de>2023-03-09 10:56:21 -0600
commita71a772e9a5008689c749b57a4ced8bb30f63daa (patch)
tree494e18474e556f6d8e6fbad3824274764fa1ecb6 /polly
parenta8adb38a96d31a8845152acf1ead21f3d27e3c41 (diff)
downloadllvm-a71a772e9a5008689c749b57a4ced8bb30f63daa.tar.gz
[Polly] Fix plugin build.
The target_link_libraries call was accidentially removed in D142580 (Remove Polly-ACC).
Diffstat (limited to 'polly')
-rw-r--r--polly/lib/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/polly/lib/CMakeLists.txt b/polly/lib/CMakeLists.txt
index 2847d689c09d..e17333b76dca 100644
--- a/polly/lib/CMakeLists.txt
+++ b/polly/lib/CMakeLists.txt
@@ -126,6 +126,12 @@ else ()
$<TARGET_OBJECTS:obj.Polly>
)
+ # Only add the dependencies that are not part of LLVM. The latter are assumed
+ # to be already available in the address space the module is loaded into.
+ # Adding them once more would have the effect that both copies try to register
+ # the same command line options, to which LLVM reacts with an error.
+ target_link_libraries(LLVMPolly PUBLIC ${ISL_TARGET})
+
set_target_properties(LLVMPolly
PROPERTIES
LINKER_LANGUAGE CXX