[polly] b951239 - [polly] [CMake] Link polly-isl-test with LLVMSupport (#65424)
Sam James via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 25 02:31:25 PST 2023
Author: vient
Date: 2023-12-25T10:31:09Z
New Revision: b951239932c735deec633bb53c0efa71912155f1
URL: https://github.com/llvm/llvm-project/commit/b951239932c735deec633bb53c0efa71912155f1
DIFF: https://github.com/llvm/llvm-project/commit/b951239932c735deec633bb53c0efa71912155f1.diff
LOG: [polly] [CMake] Link polly-isl-test with LLVMSupport (#65424)
Otherwise link may fail if user provided additional library to link with via CMAKE_EXE_LINKER_FLAGS. Concrete example is using custom allocator, LLVMSupport provides needed -lpthread in that case.
Closes: https://github.com/llvm/llvm-project/pull/65424
Added:
Modified:
polly/lib/External/CMakeLists.txt
Removed:
################################################################################
diff --git a/polly/lib/External/CMakeLists.txt b/polly/lib/External/CMakeLists.txt
index 458925f9b6e4d5..1869410c8baa5d 100644
--- a/polly/lib/External/CMakeLists.txt
+++ b/polly/lib/External/CMakeLists.txt
@@ -306,6 +306,7 @@ if (POLLY_BUNDLED_ISL)
target_link_libraries(polly-isl-test PRIVATE
PollyISL
+ LLVMSupport
)
# ISL requires at least C99 to compile. gcc < 5.0 use -std=gnu89 as default.
More information about the llvm-commits
mailing list