Commit Graph

4 Commits

Author SHA1 Message Date
Steven Wu
8818844451 Fix PR36520 for Apple Scilicon Mac
Do not hard code target in the check since it is different on Apple
Scilicon Mac.
2021-03-22 08:18:41 -07:00
Steven Wu
9904f9bb9c [SR-14311] Error out when swift-api-extract failed to load module
Emit diagnostics and error out when swift-api-extract failed to load
module.
2021-03-19 10:55:59 -07:00
Alexis Laferrière
a18c2a18f9 [Test] Add -module-cache-path flag to the APIJSON tests
The APIJSON tests used the default module cache and generated different
modules under the same name. This lead some tests to load a different
module than intended. This was made more easily detectable with the lock
on the swiftmodules instead of the swiftinterfaces.
2021-03-02 12:38:15 -08:00
Steven Wu
02c41656be swift-api-extract to generate JSON API information
Add a new swift-frontend driver option that extract APIs in the swift
module and print in JSON format. This is to allow tooling to understand
and process swift APIs without the need to be a swift compiler or
understand swift module/AST.
2021-02-15 15:04:52 -08:00