Skip to content

Commit d85e58f

Browse files
author
git apple-llvm automerger
committed
Merge commit 'a0b6af1ceb53' from apple/stable/20210107 into swift/main
2 parents e21cddb + a0b6af1 commit d85e58f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
# LLDB modules
2323
import lldb
2424
from . import lldbtest_config
25+
from . import configuration
2526

2627
# How often failed simulator process launches are retried.
2728
SIMULATOR_RETRY = 3
@@ -63,6 +64,11 @@ def mkdir_p(path):
6364
# ============================
6465

6566
def get_xcode_sdk(os, env):
67+
# Respect --apple-sdk <path> if it's specified. If the SDK is simply
68+
# mounted from some disk image, and not actually installed, this is the
69+
# only way to use it.
70+
if configuration.apple_sdk:
71+
return configuration.apple_sdk
6672
if os == "ios":
6773
if env == "simulator":
6874
return "iphonesimulator"

0 commit comments

Comments
 (0)