[polly] r283600 - Define PATH_MAX on windows
Hongbin Zheng via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 7 13:58:20 PDT 2016
Author: ether
Date: Fri Oct 7 15:58:20 2016
New Revision: 283600
URL: http://llvm.org/viewvc/llvm-project?rev=283600&view=rev
Log:
Define PATH_MAX on windows
Differential Revision: https://reviews.llvm.org/D25372
Modified:
polly/trunk/lib/External/CMakeLists.txt
Modified: polly/trunk/lib/External/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/External/CMakeLists.txt?rev=283600&r1=283599&r2=283600&view=diff
==============================================================================
--- polly/trunk/lib/External/CMakeLists.txt (original)
+++ polly/trunk/lib/External/CMakeLists.txt Fri Oct 7 15:58:20 2016
@@ -339,3 +339,9 @@ else ()
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 ()
More information about the llvm-commits
mailing list