Skip to content

Commit 2119851

Browse files
authored
Merge pull request swiftlang#30804 from nkcsgexi/60786484
swift-api-checker.py: add -swift-only flag when checking ABI stability
2 parents feba039 + e937184 commit 2119851

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

utils/api_checker/swift-api-checker.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ def __init__(self, tool_path, platform, platform_alias, abi, verbose):
115115
if self.platform == 'macosx':
116116
# We need this input search path for CreateML
117117
self.inputs.extend([self.sdk + '/usr/lib/swift/'])
118-
self.frameworks = []
118+
# This is where XCTest is
119+
self.frameworks = [self.sdk + '/../../Library/Frameworks/']
119120
if self.platform.startswith('iosmac'):
120121
# Catalyst modules need this extra framework dir
121122
iOSSupport = self.sdk + \
@@ -151,7 +152,7 @@ def run(self, output, module, swift_ver, opts,
151152
for path in self.inputs:
152153
cmd.extend(['-I', path])
153154
if self.abi:
154-
cmd.extend(['-abi'])
155+
cmd.extend(['-abi', '-swift-only'])
155156
cmd.extend(['-' + o for o in opts])
156157
if self.verbose:
157158
cmd.extend(['-v'])

0 commit comments

Comments
 (0)