[Lldb-commits] [PATCH] D88866: [lldb] Add another fallback to GetXcodeSDK

Adrian Prantl via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 6 12:59:02 PDT 2020


aprantl added inline comments.


================
Comment at: lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm:405
+  auto find_sdk = [&](std::string sdk_name) -> std::string {
+    std::string developer_dir = GetEnvDeveloperDir();
+    if (developer_dir.empty())
----------------
perhaps add
```
  bool have_developer_dir = !developer_dir.empty()`
```


================
Comment at: lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm:427
+    // If we didn't find the SDK with the developer dir set, try without.
+    return xcrun(xcrun_cmd);
+  };
----------------
and here `if (!have_developer_dir)`

to avoid silently ignoring an explicitly specified DEVELOPER_DIR


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D88866/new/

https://reviews.llvm.org/D88866



More information about the lldb-commits mailing list