This revision was automatically updated to reflect the committed changes. Closed by commit rGad4e7b9dc82b: Fix an oversight in GetXcodeContentsDirectory() (authored by aprantl). Herald added a project: LLDB.
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D81290/new/ https://reviews.llvm.org/D81290 Files: lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm Index: lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm =================================================================== --- lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm +++ lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm @@ -326,9 +326,9 @@ } } - std::string env_developer_dir = GetEnvDeveloperDir(); + llvm::SmallString<128> env_developer_dir(GetEnvDeveloperDir()); if (!env_developer_dir.empty()) { - // FIXME: This looks like it couldn't possibly work! + llvm::sys::path::append(env_developer_dir, "Contents"); std::string xcode_contents_dir = XcodeSDK::FindXcodeContentsDirectoryInPath(env_developer_dir); if (!xcode_contents_dir.empty()) {
Index: lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm =================================================================== --- lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm +++ lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm @@ -326,9 +326,9 @@ } } - std::string env_developer_dir = GetEnvDeveloperDir(); + llvm::SmallString<128> env_developer_dir(GetEnvDeveloperDir()); if (!env_developer_dir.empty()) { - // FIXME: This looks like it couldn't possibly work! + llvm::sys::path::append(env_developer_dir, "Contents"); std::string xcode_contents_dir = XcodeSDK::FindXcodeContentsDirectoryInPath(env_developer_dir); if (!xcode_contents_dir.empty()) {
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits