Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit 612ed3c

Browse files
committed
[dsymutil] Replace PATH_MAX in SmallString with fixed value.
Apparently the Windows bots don't know this define, so just going with a sensible default. Failing builds: http://lab.llvm.org:8011/builders/lldb-x86-windows-msvc2015/builds/19179 http://lab.llvm.org:8011/builders/lld-x86_64-win7/builds/19263 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@325762 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 7f3a2c2 commit 612ed3c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/dsymutil/DwarfLinker.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -110,18 +110,18 @@ class CachedPathResolver {
110110
/// StringRef is interned in the given \p StringPool.
111111
StringRef resolve(std::string Path, NonRelocatableStringpool &StringPool) {
112112
StringRef FileName = sys::path::filename(Path);
113-
SmallString<PATH_MAX> ParentPath = sys::path::parent_path(Path);
113+
SmallString<256> ParentPath = sys::path::parent_path(Path);
114114

115115
// If the ParentPath has not yet been resolved, resolve and cache it for
116116
// future look-ups.
117117
if (!ResolvedPaths.count(ParentPath)) {
118-
SmallString<PATH_MAX> RealPath;
118+
SmallString<256> RealPath;
119119
sys::fs::real_path(ParentPath, RealPath);
120120
ResolvedPaths.insert({ParentPath, StringRef(RealPath).str()});
121121
}
122122

123123
// Join the file name again with the resolved path.
124-
SmallString<PATH_MAX> ResolvedPath(ResolvedPaths[ParentPath]);
124+
SmallString<256> ResolvedPath(ResolvedPaths[ParentPath]);
125125
sys::path::append(ResolvedPath, FileName);
126126
return StringPool.internString(ResolvedPath);
127127
}

0 commit comments

Comments
 (0)