[Lldb-commits] [lldb] 0a302f6 - [lldb] Search PrivateFrameworks when using an internal SDK
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Tue Nov 30 11:29:37 PST 2021
Author: Jonas Devlieghere
Date: 2021-11-30T11:28:19-08:00
New Revision: 0a302f66673720a0d3fd3f0ce32ec9cfda428cf1
URL: https://github.com/llvm/llvm-project/commit/0a302f66673720a0d3fd3f0ce32ec9cfda428cf1
DIFF: https://github.com/llvm/llvm-project/commit/0a302f66673720a0d3fd3f0ce32ec9cfda428cf1.diff
LOG: [lldb] Search PrivateFrameworks when using an internal SDK
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
Added:
Modified:
lldb/packages/Python/lldbsuite/test/builders/darwin.py
Removed:
################################################################################
diff --git a/lldb/packages/Python/lldbsuite/test/builders/darwin.py b/lldb/packages/Python/lldbsuite/test/builders/darwin.py
index 6e5ba391a7b70..acde678ba87a0 100644
--- a/lldb/packages/Python/lldbsuite/test/builders/darwin.py
+++ b/lldb/packages/Python/lldbsuite/test/builders/darwin.py
@@ -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__))
More information about the lldb-commits
mailing list