Skip to content

[Dependency Scanner] Batch scanner: extract target triple from the PCMArgs for the batch invocation. #33671

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

Merged
merged 1 commit into from
Aug 28, 2020

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented Aug 27, 2020

Otherwise the created invocation will end up re-using the parent compiler invocation's target triple for every created scanning instance.

I stumbled upon this when testing swiftlang/swift-driver#225.
The PCMArgs we pass in to the batch scanner are intended to be clang arguments and are prefixed with -Xcc, so they do not affect the created compiler instance.

@artemcm artemcm requested a review from nkcsgexi August 27, 2020 23:00
@artemcm
Copy link
Contributor Author

artemcm commented Aug 27, 2020

@swift-ci please smoke test

@artemcm
Copy link
Contributor Author

artemcm commented Aug 27, 2020

@swift-ci please test Windows platform

@artemcm artemcm force-pushed the BatchScannerTargetExtract branch 3 times, most recently from e426d12 to 6cff053 Compare August 28, 2020 01:57
@artemcm
Copy link
Contributor Author

artemcm commented Aug 28, 2020

@swift-ci please smoke test

…nherit the creating invocation's extra clang args.

This ensures that when the dependency scanner is invoked with additional clang (`-Xcc`) options, the Clang scanner is correctly configured using these options.
@artemcm artemcm force-pushed the BatchScannerTargetExtract branch from 6cff053 to 5afbddb Compare August 28, 2020 02:22
@artemcm
Copy link
Contributor Author

artemcm commented Aug 28, 2020

@swift-ci please smoke test

Copy link
Contributor

@nkcsgexi nkcsgexi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!👍

@artemcm
Copy link
Contributor Author

artemcm commented Aug 28, 2020

@swift-ci please smoke test OS X platform

@artemcm artemcm merged commit 02513b1 into swiftlang:master Aug 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants