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"
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"
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits