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

Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 7 14:07:24 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL283600: Define PATH_MAX on windows (authored by ether).

Changed prior to commit:
  https://reviews.llvm.org/D25372?vs=73971&id=73986#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D25372

Files:
  polly/trunk/lib/External/CMakeLists.txt


Index: polly/trunk/lib/External/CMakeLists.txt
===================================================================
--- polly/trunk/lib/External/CMakeLists.txt
+++ polly/trunk/lib/External/CMakeLists.txt
@@ -339,3 +339,9 @@
     COMPILE_FLAGS "-w"
   )
 endif ()
+
+if(MSVC)
+  # In the Windows API (with some exceptions), the maximum length for a path is
+  # MAX_PATH, which is defined as 260 characters. 
+  target_compile_definitions(PollyPPCG PUBLIC "-DPATH_MAX=260")
+endif ()


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


More information about the llvm-commits mailing list