[Lldb-commits] [lldb] [lldb] Search both visionOS and XROS DeviceSupport directories (PR #228573)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 2 17:59:15 PDT 2026
================
@@ -96,19 +96,22 @@ bool PlatformDarwinDevice::UpdateSDKDirectoryInfosIfNeeded() {
if (device_support_dir) {
AddSharedCacheDirectory(device_support_dir, "builtin SDK directory");
- // "macOS DeviceSupport", "iOS DeviceSupport", etc.
- llvm::StringRef dirname = GetDeviceSupportDirectoryName();
- std::string local_sdk_cache_str = "~/Library/Developer/Xcode/";
- local_sdk_cache_str += std::string(dirname);
- FileSpec local_sdk_cache(local_sdk_cache_str.c_str());
- FileSystem::Instance().Resolve(local_sdk_cache);
- if (FileSystem::Instance().Exists(local_sdk_cache)) {
- LLDB_LOGF(log,
- "PlatformDarwinDevice::UpdateSDKDirectoryInfosIfNeeded "
- "searching %s for additional SDKs",
- local_sdk_cache.GetPath().c_str());
- AddSharedCacheDirectory(local_sdk_cache.GetPath().c_str(),
- "system developer dir directory");
+ // "macOS DeviceSupport", "iOS DeviceSupport", etc. The names are in
----------------
JDevlieghere wrote:
This example is wrong, right? Is there a platform that returns those two? Why not use the visionOS/XROS example?
https://github.com/llvm/llvm-project/pull/228573
More information about the lldb-commits
mailing list