-
Notifications
You must be signed in to change notification settings - Fork 205
Support invoking the Fast Dependency Scanner: -scan-dependencies
#97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support invoking the Fast Dependency Scanner: -scan-dependencies
#97
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking very good! A few minor requests.
@@ -87,6 +87,9 @@ public enum FileType: String, Hashable, CaseIterable, Codable { | |||
/// Text-based dylib (TBD) file. | |||
case tbd | |||
|
|||
/// JSON-based Module Dependency Scanner output | |||
case JSONDependencies = "dependencies.json" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hate to make this one of my few comments, but can you call this jsonDependencies
? Values in Swift start with lowercase, including initialisms like this.
@@ -1586,6 +1586,16 @@ final class SwiftDriverTests: XCTestCase { | |||
} | |||
} | |||
|
|||
func testScanDependenciesOption() throws { | |||
do { | |||
var driver = try Driver(args: ["swiftc", "-scan-dependencies", "foo.swift"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-scan-dependencies
supports other kinds of outputs. Can you feed in arguments to ask it to produce a dependencies file (.d
) and make sure that ends up on the resulting command line?
@swift-ci please test |
3f6f2ac
to
d0cf201
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@swift-ci please test |
@swift-ci test |
d0cf201
to
9835e6d
Compare
Just needed a rebase. |
@swift-ci test |
Merge pull request apple#97 from artemcm/NewDriverFastDependencyScanner
Add support for the additional compiler mode added in: #28515.