hurd-pathmax
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Sat, 15 Aug 2020 20:34:33 +0000 (21:34 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Sat, 15 Aug 2020 20:34:33 +0000 (21:34 +0100)
===================================================================

Gbp-Pq: Topic hurd
Gbp-Pq: Name hurd-pathmax.diff

clang/lib/Basic/FileManager.cpp
clang/lib/Frontend/ModuleDependencyCollector.cpp
lldb/include/lldb/lldb-defines.h
polly/lib/External/ppcg/cuda_common.c
tools/dsymutil/DwarfLinker.cpp

index 01ec1d69cde53f7ed42fda45600c95be67b8c9ec..976fa70e05fec37fa7599385a75b01380a3c69f9 100644 (file)
@@ -483,6 +483,12 @@ void FileManager::invalidateCache(const FileEntry *Entry) {
   UniqueRealFiles.erase(Entry->getUniqueID());
 }
 
+// For GNU Hurd
+#if defined(__GNU__) && !defined(PATH_MAX)
+# define PATH_MAX 4096
+#endif
+
+
 void FileManager::GetUniqueIDMapping(
                    SmallVectorImpl<const FileEntry *> &UIDToFiles) const {
   UIDToFiles.clear();
index fa8efcc3b53cd6846ced72257d1c6a1ffdb3aab2..0803fd6f1cdedbef276f519debc35deedad75cee 100644 (file)
@@ -99,6 +99,11 @@ struct ModuleDependencyMMCallbacks : public ModuleMapCallbacks {
 
 }
 
+// For GNU Hurd
+#if defined(__GNU__) && !defined(PATH_MAX)
+# define PATH_MAX 4096
+#endif
+
 // TODO: move this to Support/Path.h and check for HAVE_REALPATH?
 static bool real_path(StringRef SrcPath, SmallVectorImpl<char> &RealPath) {
 #ifdef LLVM_ON_UNIX
index 8a54b4c44364baafc2d254382d66a5e089782573..7a3672481f9d82e1caae39b5bd5531cbefd91700 100644 (file)
 #define INT32_MAX 2147483647
 #endif
 
+// For GNU Hurd
+#if defined(__GNU__) && !defined(PATH_MAX)
+# define PATH_MAX 4096
+#endif
+
 #if !defined(UINT32_MAX)
 #define UINT32_MAX 4294967295U
 #endif
index 497353f4319f4cbfd7e931ae591b037cdd95b911..dd0690fb4e7b4c047a485f46be54c0c2a82904a6 100644 (file)
 #include "cuda_common.h"
 #include "ppcg.h"
 
+// For GNU Hurd
+#if defined(__GNU__) && !defined(PATH_MAX)
+# define PATH_MAX 4096
+#endif
+
 /* Open the host .cu file and the kernel .hu and .cu files for writing.
  * Add the necessary includes.
  */
index 0743cfc3ed403ebaead4087ef5eb75fd617b3aa6..3941dbc6687a4c3d3dbbf450f56c24b505e778d2 100644 (file)
 #include <utility>
 #include <vector>
 
+// For GNU Hurd
+#if defined(__GNU__) && !defined(PATH_MAX)
+# define PATH_MAX 4096
+#endif
+
 namespace llvm {
 namespace dsymutil {