-
-
Notifications
You must be signed in to change notification settings - Fork 45
Use JSKit runtime from SwiftPM resources #335
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
This comment was marked as outdated.
This comment was marked as outdated.
Due to the fact that swiftlang/swift-package-manager#4306 will only be available starting with Swift 5.7, we can't generate these resources with a SwiftPM plugin. I propose storing the generated code in the repository directly for now. When 5.7 is released, we can switch to a SwiftPM plugin approach. Can be tested end-to-end with swiftwasm/carton#335. Co-authored-by: Yuta Saito <kateinoigakukun@gmail.com>
@kateinoigakukun LMK if you're busy, I can either wait until you have time to review or merge as is. Thanks! |
Ah, give me 30min for review. |
No worries! I don't want to distract you from your work, but at the same time your input is greatly appreciated, especially as it's a large-ish PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should report diagnostics when users specify JSKit versions that don't have bundled runtime source.
@@ -201,7 +202,7 @@ public final class Toolchain { | |||
} | |||
|
|||
public func inferSourcesPaths() throws -> [AbsolutePath] { | |||
let manifest = try self.manifest.get() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change applied by the formatter.
All CI checks are green now, ready for review 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🦅
Resolves #155.