[Lldb-commits] [lldb] Fix the DEVELOPER_DIR computation (PR #70528)
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 27 18:02:55 PDT 2023
================
@@ -461,13 +461,11 @@ static void ParseOSVersion(llvm::VersionTuple &version, NSString *Key) {
// Invoke xcrun with the shlib dir.
if (FileSpec fspec = HostInfo::GetShlibDir()) {
if (FileSystem::Instance().Exists(fspec)) {
- std::string contents_dir =
- XcodeSDK::FindXcodeContentsDirectoryInPath(fspec.GetPath());
- llvm::StringRef shlib_developer_dir =
- llvm::sys::path::parent_path(contents_dir);
- if (!shlib_developer_dir.empty()) {
- auto sdk =
- xcrun(sdk_name, show_sdk_path, std::move(shlib_developer_dir));
+ llvm::SmallString<0> shlib_developer_dir(
----------------
bulbazord wrote:
Why 0?
I assume the switch to SmallString has to do with the `llvm::sys::path::append`, that part makes sense to me.
https://github.com/llvm/llvm-project/pull/70528
More information about the lldb-commits
mailing list