[polly] a71a772 - [Polly] Fix plugin build.
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 9 08:56:45 PST 2023
Author: Michael Kruse
Date: 2023-03-09T10:56:21-06:00
New Revision: a71a772e9a5008689c749b57a4ced8bb30f63daa
URL: https://github.com/llvm/llvm-project/commit/a71a772e9a5008689c749b57a4ced8bb30f63daa
DIFF: https://github.com/llvm/llvm-project/commit/a71a772e9a5008689c749b57a4ced8bb30f63daa.diff
LOG: [Polly] Fix plugin build.
The target_link_libraries call was accidentially removed in
D142580 (Remove Polly-ACC).
Added:
Modified:
polly/lib/CMakeLists.txt
Removed:
################################################################################
diff --git a/polly/lib/CMakeLists.txt b/polly/lib/CMakeLists.txt
index 2847d689c09d4..e17333b76dca5 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
More information about the llvm-commits
mailing list