Skip to content

Compile and Run the Manifest on Windows #2363

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

Closed

Conversation

gmittert
Copy link
Contributor

@gmittert gmittert commented Oct 2, 2019

The swift interpreter doesn't work on Windows currently. Instead of
attempting to interpret the manifest, we compile it to a temporary file,
then execute it.

The swift interpreter doesn't work on Windows currently. Instead of
attempting to interpret the manifest, we compile it to a temporary file,
then execute it.
@@ -419,7 +419,11 @@ public final class ManifestLoader: ManifestLoaderProtocol {
}
#endif
cmd += [resources.swiftCompiler.pathString]
// The interpreter doesn't work on Windows yet, so instead
// we compile and run it on Windows
#if !os(Windows)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you know if it'll be available soon? I think we should break this into cleaner functions for compiling vs interpreting and then always select the compiling one for windows.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think anyone is working on it at the moment. I can split them out though, that makes sense to me.

Copy link
Member

Choose a reason for hiding this comment

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

Using #if os(Windows) for this means the code is likely to break as others do refactoring an Darwin/Linux. Can it instead be some global Bool whose default value differs on Windows, but which will allow us to test the behavior on Darwin/Linux as well?

Copy link
Contributor

Choose a reason for hiding this comment

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

That's the plan (see my first comment).

@aciidgh
Copy link
Contributor

aciidgh commented Jan 23, 2020

This should be no longer needed with #2518 Please open a new PR if some changes are still required for Windows support!

@aciidgh aciidgh closed this Jan 23, 2020
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