Skip to content

Commit

Permalink
Define PATH_MAX on windows
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D25372

llvm-svn: 283600
  • Loading branch information
etherzhhb committed Oct 7, 2016
1 parent da11412 commit 5860aef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions polly/lib/External/CMakeLists.txt
Expand Up @@ -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 ()

0 comments on commit 5860aef

Please sign in to comment.