[PATCH] D25372: [Polly] Define PATH_MAX on windows

Hongbin Zheng via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 7 10:49:33 PDT 2016


etherzhhb created this revision.
etherzhhb added reviewers: grosser, jdoerfert, Meinersbur.
etherzhhb added a subscriber: Polly.
etherzhhb set the repository for this revision to rL LLVM.
etherzhhb added a project: Polly.
Herald added subscribers: mgorny, beanz.

Define PATH_MAX on windows such that we can compile Polly on windows with MSVC!


Repository:
  rL LLVM

https://reviews.llvm.org/D25372

Files:
  lib/External/CMakeLists.txt


Index: lib/External/CMakeLists.txt
===================================================================
--- lib/External/CMakeLists.txt
+++ lib/External/CMakeLists.txt
@@ -315,6 +315,10 @@
   set(PPCG_GIT_HEAD_ID "UNKNOWN")
 endif ()
 
+if(MSVC)
+  add_definitions( -DPATH_MAX=260 )
+endif ()
+
 message(STATUS "PPCG version: ${PPCG_GIT_HEAD_ID}")
 
 set (PPCG_FILES


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25372.73954.patch
Type: text/x-patch
Size: 366 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161007/741c5b0a/attachment.bin>


More information about the llvm-commits mailing list