Skip to content

[5.9] Always specify -gmodules on built-in Clang invocations #64913

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

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented Apr 4, 2023

Cherry-pick of #64912

This is currently always done when instantiating ClangImporter by manually setting the option on the Clang invocation with:

Invocation->getCodeGenOpts().DebugTypeExtRefs = true

Now also add it to importer::addCommonInvocationArguments so that the dependency scanner always generates command-lines with the required for Swift Clang flags.

Resolves rdar://107570568

@artemcm artemcm requested a review from a team as a code owner April 4, 2023 18:10
@artemcm
Copy link
Contributor Author

artemcm commented Apr 4, 2023

@swift-ci test

@nkcsgexi
Copy link
Contributor

nkcsgexi commented Apr 4, 2023

Great findings!

This is currently always done when instantiating `ClangImporter` by manually setting the option on the Clang invocation with:
```
Invocation->getCodeGenOpts().DebugTypeExtRefs = true
```
Now also add it to `importer::addCommonInvocationArguments` so that the dependency scanner always generates command-lines with the required for Swift Clang flags.

Resolves rdar://107570568
@artemcm artemcm force-pushed the 59AlwaysClangDepScanGModules branch from 7019643 to a51ea60 Compare April 5, 2023 20:28
@artemcm
Copy link
Contributor Author

artemcm commented Apr 5, 2023

@swift-ci test

@artemcm artemcm merged commit b09a52d into swiftlang:release/5.9 Apr 6, 2023
@artemcm artemcm deleted the 59AlwaysClangDepScanGModules branch April 6, 2023 16:21
@AnthonyLatsis AnthonyLatsis added the 🍒 release cherry pick Flag: Release branch cherry picks label May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants