[polly] r242776 - Remove module LLVMPolly from Windows build

Michael Kruse llvm at meinersbur.de
Tue Jul 21 05:29:03 PDT 2015


Author: meinersbur
Date: Tue Jul 21 07:29:02 2015
New Revision: 242776

URL: http://llvm.org/viewvc/llvm-project?rev=242776&view=rev
Log:
Remove module LLVMPolly from Windows build

Loadable modules are not supported on Windows.

Reviewers: grosser


Modified:
    polly/trunk/lib/CMakeLists.txt

Modified: polly/trunk/lib/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CMakeLists.txt?rev=242776&r1=242775&r2=242776&view=diff
==============================================================================
--- polly/trunk/lib/CMakeLists.txt (original)
+++ polly/trunk/lib/CMakeLists.txt Tue Jul 21 07:29:02 2015
@@ -319,18 +319,24 @@ endif()
 
 # Build a monolithic Polly.a and a thin module LLVMPolly.moduleext that links to
 # that static library.
-add_polly_loadable_module(LLVMPolly
-  Polly.cpp
-)
+if (MSVC)
+  # Add dummy target, because loadable modules are not supported on Windows
+  add_custom_target(LLVMPolly)
+else ()
+  add_polly_loadable_module(LLVMPolly
+    Polly.cpp
+  )
+
+  target_link_libraries(LLVMPolly Polly)
+
+  set_target_properties(LLVMPolly
+    PROPERTIES
+    LINKER_LANGUAGE CXX
+    PREFIX "")
+endif ()
 
 if (TARGET intrinsics_gen)
   # Check if we are building as part of an LLVM build
   add_dependencies(Polly intrinsics_gen)
 endif()
 
-target_link_libraries(LLVMPolly Polly)
-
-set_target_properties(LLVMPolly
-  PROPERTIES
-  LINKER_LANGUAGE CXX
-  PREFIX "")





More information about the llvm-commits mailing list