aboutsummaryrefslogtreecommitdiff
path: root/polly
diff options
context:
space:
mode:
authorCarlo Bramini <carlo_bramini@users.sourceforge.net>2023-09-05 14:36:28 -0700
committerEli Friedman <efriedma@quicinc.com>2023-09-05 14:38:35 -0700
commit17f747b30433f2bc305f1081d357d91beb3c9896 (patch)
treed0d061e4b44db8c41bf253e4d976d52a34d38763 /polly
parentefec733bf5bb97b34361c4ce49346edc6afa3866 (diff)
downloadllvm-17f747b30433f2bc305f1081d357d91beb3c9896.zip
llvm-17f747b30433f2bc305f1081d357d91beb3c9896.tar.gz
llvm-17f747b30433f2bc305f1081d357d91beb3c9896.tar.bz2
[polly] Dynamic libraries are not supported on Cygwin
Cygwin shares the same limitations as traditional Windows executables for dynamic library loading, so disable building the dynamic library on Cygwin targets. Differential Revision: https://reviews.llvm.org/D155796
Diffstat (limited to 'polly')
-rw-r--r--polly/cmake/CMakeLists.txt2
-rw-r--r--polly/lib/CMakeLists.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/polly/cmake/CMakeLists.txt b/polly/cmake/CMakeLists.txt
index e74cf5f..cd1f5db 100644
--- a/polly/cmake/CMakeLists.txt
+++ b/polly/cmake/CMakeLists.txt
@@ -23,7 +23,7 @@ else()
endif()
set(POLLY_CONFIG_EXPORTED_TARGETS Polly ${ISL_TARGET})
-if (NOT WIN32 AND LLVM_ENABLE_PIC)
+if (NOT (WIN32 OR CYGWIN) AND LLVM_ENABLE_PIC)
# LLVMPolly is a dummy target on Win or if PIC code is disabled.
list(APPEND POLLY_CONFIG_EXPORTED_TARGETS LLVMPolly)
endif()
diff --git a/polly/lib/CMakeLists.txt b/polly/lib/CMakeLists.txt
index e17333b..9780f24 100644
--- a/polly/lib/CMakeLists.txt
+++ b/polly/lib/CMakeLists.txt
@@ -115,7 +115,7 @@ target_link_libraries(Polly PUBLIC
# Create a loadable module Polly.so that can be loaded using
# LLVM's/clang's "-load" option.
-if (WIN32 OR NOT LLVM_ENABLE_PIC)
+if (WIN32 OR CYGWIN OR NOT LLVM_ENABLE_PIC)
# Add dummy target, either because loadable modules are not supported
# as on Windows or because PIC code has been disabled
add_custom_target(LLVMPolly)