[PATCH] D11344: [Polly] Fix CMake build for Visual Studio

Michael Kruse llvm at meinersbur.de
Sun Jul 19 15:32:52 PDT 2015


Meinersbur created this revision.
Meinersbur added a reviewer: grosser.
Meinersbur added subscribers: pollydev, llvm-commits.
Meinersbur added a project: Polly.

Adapt the CMake build for Visual Studio 2015 RC. Set the Visual Studio specific build flags to compile without RTTI and without exceptions.

Put all Polly targets into a single "Polly" category (i.e. solution folder). Previously there was no recognizable scheme and most categories contained just one or two targets or didn't belong to any category.

Remove the polly_headers_do_not_build project. Visual Studio is capable of finding the headers itself, although they are not listed explicitly. For explicit listing, the headers should be added to the relevant target.

Query the isl_config.h macros recently added to ISL. One of it looks for the ffs (find first set), whose functionality is available in Visual Studio with _BitScanForward. Also add isl_ffs.c to the source files which contains the implementation of ffs using _BitScanForward. Also add a test for stdint.h as ISL's configure does.

Remove the /Za flag. According to Stephan T. Lavavej it is broken. See [[http://comments.gmane.org/gmane.comp.compilers.clang.devel/21638|Clang devel mailing list]].

Remove gitconfig.h.cmake. It is just one line which can be better generate in the CMakeLists.txt itself, just as ISL's configure does.

To successfully compile with Visual Studio 2015 RC, a one-line patch must be integrated into ISL. This will be done as soon it is available in its public repository.

http://reviews.llvm.org/D11344

Files:
  CMakeLists.txt
  cmake/polly_macros.cmake
  include/CMakeLists.txt
  include/polly/CMakeLists.txt
  lib/CMakeLists.txt
  lib/External/gitversion.h.cmake
  lib/External/isl_config.h.cmake
  test/CMakeLists.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11344.30128.patch
Type: text/x-patch
Size: 12888 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150719/d8cb1b00/attachment.bin>


More information about the llvm-commits mailing list