cmake: Remove MAXPATHLEN define as autoconf does not provide it
authorReid Kleckner <reid@kleckner.net>
Tue, 2 Dec 2014 18:59:08 +0000 (18:59 +0000)
committerReid Kleckner <reid@kleckner.net>
Tue, 2 Dec 2014 18:59:08 +0000 (18:59 +0000)
Presumably it was added to the CMake system when MAXPATHLEN was still
used by code built for Windows. Currently only lib/Support/Path.inc uses
MAXPATHLEN, and it should be available on all Unices.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223139 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/HandleLLVMOptions.cmake
include/llvm/Config/config.h.cmake

index 6cc6d655fa2ff0c2f66790549f2993ef60bede99..2ee0dd5b1b73414497ed20ca9d899eaf4660cb41 100644 (file)
@@ -79,8 +79,6 @@ if(WIN32)
     set(LLVM_ON_WIN32 1)
     set(LLVM_ON_UNIX 0)
   endif(CYGWIN)
-  # Maximum path length is 160 for non-unicode paths
-  set(MAXPATHLEN 160)
 else(WIN32)
   if(UNIX)
     set(LLVM_ON_WIN32 0)
@@ -90,8 +88,6 @@ else(WIN32)
     else(APPLE)
       set(LLVM_HAVE_LINK_VERSION_SCRIPT 1)
     endif(APPLE)
-    # FIXME: Maximum path length is currently set to 'safe' fixed value
-    set(MAXPATHLEN 2024)
   else(UNIX)
     MESSAGE(SEND_ERROR "Unable to determine platform")
   endif(UNIX)
index d107c8f030bd12d80e697848d5a4089e390f6556..0017d737772219402814288cd955028c3306f705 100644 (file)
 /* Define to 1 if you have the `_chsize_s' function. */
 #cmakedefine HAVE__CHSIZE_S ${HAVE__CHSIZE_S}
 
-/* Maximum path length */
-#cmakedefine MAXPATHLEN ${MAXPATHLEN}
-
 #endif