Skip to content

Commit e71cda2

Browse files
mati865mstorsjo
authored andcommitted
[Windows][Polly] Disable LLVMPolly module for all compilers on Windows
Before this patch, the cmake disabled loadable modules when compiling with Visual Studio. However, the reason for this is a limitation of the Windows DLLs, thus this restriction should apply to any compiler for the Windows platform, such as MinGW, Cygwin, icc, etc. Differential Revision: https://reviews.llvm.org/D87524
1 parent 61e0b2b commit e71cda2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

polly/cmake/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ else()
1010
endif()
1111

1212
set(POLLY_CONFIG_EXPORTED_TARGETS Polly ${ISL_TARGET})
13-
if (NOT MSVC AND LLVM_ENABLE_PIC)
13+
if (NOT WIN32 AND LLVM_ENABLE_PIC)
1414
# LLVMPolly is a dummy target on Win or if PIC code is disabled.
1515
list(APPEND POLLY_CONFIG_EXPORTED_TARGETS LLVMPolly)
1616
endif()

polly/lib/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ endif ()
137137

138138
# Create a loadable module Polly.so that can be loaded using
139139
# LLVM's/clang's "-load" option.
140-
if (MSVC OR NOT LLVM_ENABLE_PIC)
140+
if (WIN32 OR NOT LLVM_ENABLE_PIC)
141141
# Add dummy target, either because loadable modules are not supported
142142
# as on Windows or because PIC code has been disabled
143143
add_custom_target(LLVMPolly)

0 commit comments

Comments
 (0)