Skip to content

[Explicit Module Builds] Pass down pre-built module candidates to the -compile-module-from-interface jobs #186

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
Jul 29, 2020

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented Jul 29, 2020

-scan-dependencies now emits ready-to-use binary module candidates that can be imported by the compiler, e.g. modules adjacent to .swiftinterface files or in prebuilt module dirs.
When invoking -compile-module-from-interface, pass down these module candidates so the compiler can emit forwarding modules to them, saving the effort of type-checking/serializing binary modules at all.

Resolves rdar://problem/66243229

@artemcm artemcm requested a review from nkcsgexi July 29, 2020 00:03
@artemcm
Copy link
Contributor Author

artemcm commented Jul 29, 2020

@swift-ci please 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, Artem!

@artemcm artemcm merged commit cc24674 into swiftlang:master Jul 29, 2020
fengjixuchui referenced this pull request in fengjixuchui/swift-driver Jul 29, 2020
Merge pull request apple#186 from artemcm/CompiledCandidates
@@ -58,7 +58,7 @@ extension ModuleDependencyId: Codable {
public var moduleInterfacePath: String?

/// The paths of potentially ready-to-use compiled modules for the interface.
var compiledModuleCandidates: [String]?
public var compiledModuleCandidates: [String]?
Copy link
Member

Choose a reason for hiding this comment

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

@_spi(Testing) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Incorporated in:
#181
Since it already heavily modifies the graph structure.

@artemcm artemcm deleted the CompiledCandidates branch January 20, 2021 19: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.

3 participants