Skip to content

Commit

Permalink
[lldb] Search PrivateFrameworks when using an internal SDK
Browse files Browse the repository at this point in the history
Make sure to add the PrivateFrameworks directory to the frameworks path
when using an internal SDK. This is necessary for the "on-device" test
suite.

rdar://84519268

Differential revision: https://reviews.llvm.org/D114742
  • Loading branch information
JDevlieghere committed Nov 30, 2021
1 parent 4b30076 commit 0a302f6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lldb/packages/Python/lldbsuite/test/builders/darwin.py
Expand Up @@ -79,6 +79,14 @@ def getExtraMakeArgs(self):
if configuration.dsymutil:
args['DSYMUTIL'] = configuration.dsymutil

if 'internal' in configuration.apple_sdk:
sdk_root = lldbutil.get_xcode_sdk_root(configuration.apple_sdk)
if sdk_root:
private_frameworks = os.path.join(sdk_root, 'System',
'Library',
'PrivateFrameworks')
args['FRAMEWORK_INCLUDES'] = '-F{}'.format(private_frameworks)

operating_system, env = get_os_and_env()
if operating_system and operating_system != "macosx":
builder_dir = os.path.dirname(os.path.abspath(__file__))
Expand Down

0 comments on commit 0a302f6

Please sign in to comment.