Author: Jonas Devlieghere Date: 2020-03-17T15:57:34-07:00 New Revision: 3829d85cc615ec9a855ce96e4555820e5dd4ae51
URL: https://github.com/llvm/llvm-project/commit/3829d85cc615ec9a855ce96e4555820e5dd4ae51 DIFF: https://github.com/llvm/llvm-project/commit/3829d85cc615ec9a855ce96e4555820e5dd4ae51.diff LOG: [lldb/PlatformDarwin] Return POSIX path from FindXcodeContentsDirectoryInPath Always return a POSIX-style path from FindXcodeContentsDirectoryInPath so that the output is identical on all host platforms. Added: Modified: lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp Removed: ################################################################################ diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp index 3f8f01081189..aa1f8994ecb6 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp @@ -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(); } } _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits