Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 7b308e4

Browse files
committed
Work around PATH_MAX not defined
Apparently our super-old CentOS 5 containers have weird headers and don't have PATH_MAX defined when compiling with Clang (but do with gcc?). Who really knows at this point what's going on, so let's just avoid this entirely as we don't use dsymutil anyway.
1 parent 7243155 commit 7b308e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/dsymutil/DwarfLinker.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,10 +1759,12 @@ PointerIntPair<DeclContext *, 1> DeclContextTree::getChildDeclContext(
17591759
(void)gotFileName;
17601760
assert(gotFileName && "Must get file name from line table");
17611761
#ifdef HAVE_REALPATH
1762+
#ifdef PATH_MAX
17621763
char RealPath[PATH_MAX + 1];
17631764
RealPath[PATH_MAX] = 0;
17641765
if (::realpath(File.c_str(), RealPath))
17651766
File = RealPath;
1767+
#endif
17661768
#endif
17671769
FileRef = StringPool.internString(File);
17681770
U.setResolvedPath(FileNum, FileRef);

0 commit comments

Comments
 (0)