-
Notifications
You must be signed in to change notification settings - Fork 207
Add -scanner-prefix-map-paths
option and fix multiArg option parsing
#1949
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
base: main
Are you sure you want to change the base?
Add -scanner-prefix-map-paths
option and fix multiArg option parsing
#1949
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.
Thanks for handling this.
Sources/SwiftDriver/ExplicitModuleBuilds/ExplicitDependencyBuildPlanner.swift
Outdated
Show resolved
Hide resolved
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.
Test looks good. Some more comments.
Sources/SwiftDriver/ExplicitModuleBuilds/ExplicitDependencyBuildPlanner.swift
Outdated
Show resolved
Hide resolved
7236a5a
to
bdbdd6b
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.
LGTM with one small comment.
We can't merge this till landing the swift compiler change.
Sources/SwiftDriver/ExplicitModuleBuilds/ExplicitDependencyBuildPlanner.swift
Outdated
Show resolved
Hide resolved
@swift-ci please test |
Thank you! Also, should I squash my commits into one before merging? |
@swift-ci please test |
Yes. Please never push individual review feedback fixes to any repositories. You can either use |
c5b2bea
to
0876a15
Compare
@swift-ci please test |
@swift-ci please test Windows platform |
The current command-line option for specifying prefix mappings for the dependency scanner does not handle paths containing equal signs. This PR adds a new option
-scanner-prefix-map-paths
that has a multiArg format instead of being=
-separated and fixes this issue. The old-scanner-prefix-map
option is still preserved, but is made driver-only and gets translated to the new option format by the driver.This also fixes the parsing of
.multiArg
options inOptionParsing.swift
so that their corresponding arguments are not added to the general inputs list and are attached to their option correctly.Corresponding PR on Swift: swiftlang/swift#82745