Skip to content
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

Provide windows build? #9

Open
yarikoptic opened this issue Nov 9, 2020 · 5 comments
Open

Provide windows build? #9

yarikoptic opened this issue Nov 9, 2020 · 5 comments

Comments

@yarikoptic
Copy link

It seems (e.g. see containers/skopeo#715) that it is generally possible and might work ;)

@mbargull
Copy link
Member

mbargull commented Nov 9, 2020

We could try a cross-compile on Linux with DISABLE_CGO=1. Do you have access to a Windows machine to tests resulting builds then?
I could try to prepare a PR from which you could then build a package locally (on WSL or a separate Linux build system) and whose resulting package you could try out on a Windows host.
(If you want to work yourself on how to build on Windows natively, please let me know. I can only offer to try out said cross-compilation and am not able to test the resulting package.)

@yarikoptic
Copy link
Author

Is cross compiling supported on conda forge?

I can test locally - windows vm is paused but the life is such that I do unpause it a few times a day

@mbargull
Copy link
Member

Is cross compiling supported on conda forge?

Yes. I wouldn't advice to go out and try to cross-compile a lot for Windows because we'd have to be careful in terms of compatibility/interaction with other packages (which are usually compiled with MSVC) -- and because I have no clue on who complicated this can get. But if we are talking about a static Go binary that doesn't link to anything (including a C library), we can give it a go ;).

I can test locally - windows vm is paused but the life is such that I do unpause it a few times a day

Perfect!

@mbargull
Copy link
Member

As it turned out, all previous cross-compiles have been with different "sudirs" but always on the same platform (Linux on Linux or macOS on macOS). If we want "Windows on Linux", we need conda/conda-build#4124 to be added to conda-build first.

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

No branches or pull requests

3 participants