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

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


etherzhhb updated this revision to Diff 73971.
etherzhhb added a comment.

Do you mean something like this?


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
@@ -349,3 +349,10 @@
     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.73971.patch
Type: text/x-patch
Size: 449 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161007/f1d6f8e9/attachment.bin>


More information about the llvm-commits mailing list