On Mon, 7 Sep 2015 15:54:18 -0700
David Walther <
da...@clearbrookdistillery.com> wrote:
> What is the right way to set up a build environment for Windows?
Go 1.5 is written in Go, and you have Go 1.4 installed to compile it.
See [1] for the instructions.
> I have Windows 10, 64 bit. I've installed 32bit and 64bit versions
> of cygwin. I've installed msys2 with the mingw-w64 packages. I have
> Visual Studio 2015 installed.
This is way too much. You only ever need Cygwin if you want to run a
program which is compiled *for* Cygwin or is a part of it.
Go build toolchain never used Cygwin IUUC, and I've never heard of Go
being built for the Cygwin runtime.
MinGW could indeed been used to build Go < 1.5, and that was the
blessed (or the sole?) way to do it.
As to Visual Studio, I have no idea. AFAIK, the `cgo` subsystem of Go
(the support in the `go` tool and the compiler for helping Go code
interoperate with code written in C) has always depended on MinGW on
Windows.
[...]
In either case, since Go 1.5 onwards Go is written in Go and to build
it, you just have a working (prior) Go installation, which is currently
1.4.
1.
http://golang.org/doc/install/source