-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Add -scanner-prefix-map-paths
to the frontend
#82745
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
Add -scanner-prefix-map-paths
to the frontend
#82745
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.
Changes LGTM. I will expect test fixes and new tests to test the option.
a831621
to
c5bbdbd
Compare
Do you have anything in mind that I need to write new tests for except modifying the old tests to use the new option instead? I made the old option driver-only and changed all of the old tests using it to use the new format so I think those should already be covering all of the code that has been modified. |
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 think the test should be fine now and the change LGTM.
065420d
to
23bb0e1
Compare
@swift-ci please test |
23bb0e1
to
6243072
Compare
6243072
to
0384347
Compare
@swift-ci please test |
@swift-ci please test macOS 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.Corresponding PR on Swift-Driver: swiftlang/swift-driver#1949