Skip to content

Commit

Permalink
[lldb/PlatformDarwin] Return POSIX path from FindXcodeContentsDirecto…
Browse files Browse the repository at this point in the history
…ryInPath

Always return a POSIX-style path from FindXcodeContentsDirectoryInPath
so that the output is identical on all host platforms.
  • Loading branch information
JDevlieghere committed Mar 17, 2020
1 parent 4d60f47 commit 3829d85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
Expand Up @@ -1842,7 +1842,8 @@ PlatformDarwin::FindXcodeContentsDirectoryInPath(llvm::StringRef path) {
auto next = it;
if (++next != end && *next == "Contents") {
llvm::SmallString<128> buffer;
llvm::sys::path::append(buffer, begin, ++next);
llvm::sys::path::append(buffer, begin, ++next,
llvm::sys::path::Style::posix);
return buffer.str().str();
}
}
Expand Down

0 comments on commit 3829d85

Please sign in to comment.