[Lldb-commits] [PATCH] D99746: [lldb/test] Respect --apple-sdk path when querying SDK info

Vedant Kumar via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 1 10:06:17 PDT 2021


vsk created this revision.
vsk added a reviewer: JDevlieghere.
vsk requested review of this revision.
Herald added a project: LLDB.

Respect --apple-sdk <path> if it's specified. If the SDK simply mounted from
some disk image, and not actually installed, this is the only way to use it.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D99746

Files:
  lldb/packages/Python/lldbsuite/test/lldbutil.py


Index: lldb/packages/Python/lldbsuite/test/lldbutil.py
===================================================================
--- lldb/packages/Python/lldbsuite/test/lldbutil.py
+++ lldb/packages/Python/lldbsuite/test/lldbutil.py
@@ -21,6 +21,7 @@
 # LLDB modules
 import lldb
 from . import lldbtest_config
+from . import configuration
 
 # How often failed simulator process launches are retried.
 SIMULATOR_RETRY = 3
@@ -62,6 +63,11 @@
 # ============================
 
 def get_xcode_sdk(os, env):
+    # Respect --apple-sdk <path> if it's specified. If the SDK simply mounted
+    # from some disk image, and not actually installed, this is the only way to
+    # use it.
+    if configuration.apple_sdk is not None:
+        return configuration.apple_sdk
     if os == "ios":
         if env == "simulator":
             return "iphonesimulator"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99746.334737.patch
Type: text/x-patch
Size: 850 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210401/f9987bf1/attachment.bin>


More information about the lldb-commits mailing list