Skip to content

[Cherry-pick into swift/release/5.10] Lazy-initialize Swift runtime in backwards interop synth provider. #7601

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

Conversation

adrian-prantl
Copy link

commit 3bce4a2043dd8af2a6a8951fc9fd7b99506094c8
Author: Adrian Prantl <[email protected]>
Date:   Fri Oct 6 17:09:28 2023 -0700

    Lazy-initialize Swift runtime in backwards interop synth provider.
    
    Otherwise the Swift runtime and scratch context will be initialized in
    any process that contains C++ struct types, which costs performance
    and produces spurious warnings if no Swift runtime is available.
    
    rdar://116533409

Otherwise the Swift runtime and scratch context will be initialized in
any process that contains C++ struct types, which costs performance
and produces spurious warnings if no Swift runtime is available.

rdar://116533409
(cherry picked from commit 3bce4a2)
@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl adrian-prantl merged commit 3278233 into swiftlang:swift/release/5.10 Oct 10, 2023
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