Skip to content

Move deserialization of import search paths into the scratch context #5692

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 2 commits into from
Dec 2, 2022

Conversation

adrian-prantl
Copy link

Import and framework search paths were previously not discovered by
validateSerializedAST() so SwiftASTContextForExpressions had the
various per-module SwiftASTContext load all registered Swift modules
and then grabbed the discovered search paths from their respective
deserialized CompilerInvocations. We now extended
validateSerializedAST() to also deserialize the search paths, which
allows getting rid of this last dependency between
SwiftASTContextForExpressions and the per-module SwiftASTContexts.

rdar://40097459

@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl
Copy link
Author

@dreampiggy This is functionally identical, but much more efficient implementation of #4203

@adrian-prantl
Copy link
Author

test with swiftlang/swift#62345
@swift-ci test

@adrian-prantl
Copy link
Author

test with swiftlang/swift#62345
@swift-ci test

Import and framework search paths were previously not discovered by
validateSerializedAST() so SwiftASTContextForExpressions had the
various per-module SwiftASTContext load all registered Swift modules
and then grabbed the discovered search paths from their respective
deserialized CompilerInvocations. We now extended
validateSerializedAST() to also deserialize the search paths, which
allows getting rid of this last dependency between
SwiftASTContextForExpressions and the per-module SwiftASTContexts.

rdar://40097459
@adrian-prantl
Copy link
Author

test with swiftlang/swift#62345
@swift-ci test

@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl adrian-prantl merged commit 67afe05 into swiftlang:stable/20220421 Dec 2, 2022
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.

3 participants