Define PATH_MAX on windows

Differential Revision: https://reviews.llvm.org/D25372

llvm-svn: 283600
This commit is contained in:
Hongbin Zheng 2016-10-07 20:58:20 +00:00
parent da11412243
commit 5860aef675

View File

@ -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 ()