Commit Graph

28 Commits

Author SHA1 Message Date
Josh Soref
4611cafbca spelling: separately
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2022-09-15 19:43:37 -04:00
Daniel Duan
3dfc40898c [NFC] Remove Python 2 imports from __future__ (#42086)
The `__future__` we relied on is now,  where the 3 specific things are
all included [since Python 3.0](https://docs.python.org/3/library/__future__.html):

* absolute_import
* print_function
* unicode_literals
* division

These import statements are no-ops and are no longer necessary.
2022-04-13 14:01:30 -07:00
Ben Barham
f4ab22e231 Update maccatalyst 13.0 target minimum to 13.1
Clang enforces a minimum 13.1 deployment target. The driver, API
checker, and various tests assume 13.0 is a valid minimum. Update these
to reflect the actual 13.1 minimum.

Resolves rdar://84177900
2021-10-16 13:24:45 +10:00
Mishal Shah
828412bd22 Update the python version to python3 for swift-api-checker.py 2021-10-06 09:11:17 -07:00
Xi Ge
e937184b99 swift-api-checker.py: add framework search path for XCTest 2020-04-03 16:32:00 -07:00
Xi Ge
419b14772c swift-api-checker.py: add -swift-only flag when checking ABI stability
The existing logic of ABI checking only works for Swift symbols. We need to
add this flag so the script can work with Swift overlays.

rdar://60786484
2020-04-03 16:24:05 -07:00
Xi Ge
115569f0de swift-api-checker.py: introduce a sub directory under framework name for ABI baselines
In case we need to also include framework API baselines in the future, we should have
an additional layer of directory for ABI baseline files.
2019-09-03 10:50:13 -07:00
Xi Ge
d09329676b swift-api-checker.py: teach the script to generate target-specific baseline for a single module
This allows us to generate baselines for the Swift stdlib using an Xcode release.
2019-08-30 12:42:10 -07:00
Xi Ge
cdd4eed3ea swift-api-checker.py: remove unnecessary framework search paths 2019-08-26 11:30:53 -07:00
Xi Ge
eab0c55b16 swift-api-checker.py: allow users to specify json file names when dumping framework content 2019-08-26 10:57:58 -07:00
Xi Ge
1857a37e3b Merge pull request #26773 from nkcsgexi/abort-compiler-error
ABI/API checker: abort after error occurs while importing a module
2019-08-21 19:01:55 -07:00
Xi Ge
d4bfae8595 ABI/API checker: abort after error occurs while importing a module 2019-08-21 15:57:39 -07:00
Xi Ge
7a19538cb0 swift-api-checker: pass down --catalyst to infer-imports.py when looking for them 2019-08-21 11:48:10 -07:00
Xi Ge
362ece8445 swift-api-checker: add support for invoking low-level executable using iosmac target 2019-08-20 15:39:09 -07:00
Xi Ge
d388bac43a swift-api-checker: rename existing fixed-module lists to fixed-clang-modules
This patch also adds fixed-swift-modules to hard-code CreateML, which could
not be found in the regular framework search path.
2019-08-20 12:19:46 -07:00
Xi Ge
3914452ecf Revert "Revert "swift-api-checker: update target triples for the tool to use"" 2019-08-01 11:48:27 -07:00
Mishal Shah
f4f3113d38 Revert "swift-api-checker: update target triples for the tool to use" 2019-08-01 11:10:31 -07:00
Xi Ge
79554093a4 swift-api-checker: update target triples for the tool to use 2019-07-31 18:13:48 -07:00
Xi Ge
2908c491f6 swift-api-checker: teach the script to collect all frameworks with Swift overlay in SDKs 2019-07-08 13:14:07 -07:00
Xi Ge
5d906e643a swift-api-checker: teach the script to dump entire SDK content to files separated by modules 2019-07-03 12:56:19 -07:00
Xi Ge
4ac14ea0d5 swift-api-checker: print framework names when diagnosing breakages 2019-06-17 16:19:40 -07:00
Xi Ge
06c958e6af swift-api-checker: teach the script to collect Swift only frameworks from the SDK.
This will only include frameworks like SwiftUI, Combine, etc.

Related: rdar://48456712
2019-06-13 12:36:56 -07:00
Xi Ge
f5853ba44f swift-api-digester: avoid adding MissingMemberDecl to the json file
We explicitly ignore these ABI placeholders to fix an unreachable hit.
2019-05-22 18:09:42 -07:00
Xi Ge
246bfbcc4c linting 2019-03-21 20:29:33 -07:00
Xi Ge
80330d6ee4 swift-api-checker: allow the script to take additional flags to pass down to the executable 2019-03-21 17:25:01 -07:00
Xi Ge
6a502aaefd swift-api-checker: allow users to specify the path of a swift-api-digester 2019-03-20 14:49:16 -07:00
Xi Ge
51bd604a1a swift-api-checker: teach the script to also diagnose the breakages between two previous dumps 2019-03-20 12:26:35 -07:00
Xi Ge
6c0e0ee4f5 utils: add a convenient python wrapper for swift-api-digester
Based on the same concept of swift-api-dump, this python wrapper
provides framework authors a convenient way to generate baseline or
diagnose ABI/API breakages from an existing toolchain where it has
swift-api-digester installed.

cmake installation part will be added in a separate PR.

rdar://problem/29649661
2019-03-19 17:48:16 -07:00