Skip to content

[5.1] -build-module-from-parseable-interface: Don't make an extra ASTContext #25198

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
Jun 7, 2019

Conversation

jrose-apple
Copy link
Contributor

Cherry-pick of #25185 to the 5.1 branch. Reviewed by @nathawes and @harlanhaskins.

swiftlang#25185)

This mode is supposed to get all its configuration information from
the switftinterface being read in, but that means that the ASTContext
and ClangImporter that get created by default may not be a sensible
configuration (for example, a mismatched target and SDK, which Clang
emits a warning about). Avoid this by just not creating the ASTContext
if it's already been determined that the frontend is building a module
from a parseable interface.

(cherry picked from commit 0f45437)
@jrose-apple
Copy link
Contributor Author

@swift-ci Please test

@jrose-apple jrose-apple merged commit 6c5a905 into swiftlang:swift-5.1-branch Jun 7, 2019
@jrose-apple jrose-apple deleted the 5.1-grammar! branch June 7, 2019 21:01
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.

1 participant